comparison pytouhou/lib/opengl.pxd @ 585:e0166cda75d5

Use primitive-restart to lower the size of our ibo, if supported.
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Wed, 08 Oct 2014 14:28:37 +0200
parents 538b52aafbca
children 4b0593da29d5
comparison
equal deleted inserted replaced
584:538b52aafbca 585:e0166cda75d5
78 ctypedef enum GLenum_quality 'GLenum': 78 ctypedef enum GLenum_quality 'GLenum':
79 GL_NICEST 79 GL_NICEST
80 80
81 ctypedef enum GLenum_mode 'GLenum': 81 ctypedef enum GLenum_mode 'GLenum':
82 GL_TRIANGLES 82 GL_TRIANGLES
83 GL_TRIANGLE_STRIP
83 84
84 ctypedef enum GLenum_buffer 'GLenum': 85 ctypedef enum GLenum_buffer 'GLenum':
85 GL_ARRAY_BUFFER 86 GL_ARRAY_BUFFER
86 GL_ELEMENT_ARRAY_BUFFER 87 GL_ELEMENT_ARRAY_BUFFER
87 88
122 GL_TEXTURE_2D 123 GL_TEXTURE_2D
123 GL_DEPTH_TEST 124 GL_DEPTH_TEST
124 GL_LINEAR 125 GL_LINEAR
125 GL_SCISSOR_TEST 126 GL_SCISSOR_TEST
126 GL_FOG 127 GL_FOG
128 GL_PRIMITIVE_RESTART
127 129
128 void glVertexPointer(GLint size, GLenum_type type_, GLsizei stride, GLvoid *pointer) 130 void glVertexPointer(GLint size, GLenum_type type_, GLsizei stride, GLvoid *pointer)
129 void glTexCoordPointer(GLint size, GLenum_type type_, GLsizei stride, GLvoid *pointer) 131 void glTexCoordPointer(GLint size, GLenum_type type_, GLsizei stride, GLvoid *pointer)
130 void glColorPointer(GLint size, GLenum_type type_, GLsizei stride, GLvoid *pointer) 132 void glColorPointer(GLint size, GLenum_type type_, GLsizei stride, GLvoid *pointer)
131 133
195 197
196 void glGenVertexArrays(GLsizei n, GLuint *arrays) 198 void glGenVertexArrays(GLsizei n, GLuint *arrays)
197 void glDeleteVertexArrays(GLsizei n, const GLuint *arrays) 199 void glDeleteVertexArrays(GLsizei n, const GLuint *arrays)
198 void glBindVertexArray(GLuint array) 200 void glBindVertexArray(GLuint array)
199 201
202 void glPrimitiveRestartIndex(GLuint index)
203
200 # Debug 204 # Debug
201 205
202 void glPushDebugGroup(GLenum_debug source, GLuint id_, GLsizei length, const char *message) 206 void glPushDebugGroup(GLenum_debug source, GLuint id_, GLsizei length, const char *message)
203 void glPopDebugGroup() 207 void glPopDebugGroup()
204 208