diff 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
line wrap: on
line diff
--- a/pytouhou/lib/opengl.pxd
+++ b/pytouhou/lib/opengl.pxd
@@ -80,6 +80,7 @@ cdef extern from 'epoxy/gl.h' nogil:
 
     ctypedef enum GLenum_mode 'GLenum':
         GL_TRIANGLES
+        GL_TRIANGLE_STRIP
 
     ctypedef enum GLenum_buffer 'GLenum':
         GL_ARRAY_BUFFER
@@ -124,6 +125,7 @@ cdef extern from 'epoxy/gl.h' nogil:
         GL_LINEAR
         GL_SCISSOR_TEST
         GL_FOG
+        GL_PRIMITIVE_RESTART
 
     void glVertexPointer(GLint size, GLenum_type type_, GLsizei stride, GLvoid *pointer)
     void glTexCoordPointer(GLint size, GLenum_type type_, GLsizei stride, GLvoid *pointer)
@@ -197,6 +199,8 @@ cdef extern from 'epoxy/gl.h' nogil:
     void glDeleteVertexArrays(GLsizei n, const GLuint *arrays)
     void glBindVertexArray(GLuint array)
 
+    void glPrimitiveRestartIndex(GLuint index)
+
     # Debug
 
     void glPushDebugGroup(GLenum_debug source, GLuint id_, GLsizei length, const char *message)