diff pytouhou/lib/opengl.pxd @ 519:b18f0bd30ad0

Optimise background rendering.
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Sat, 07 Dec 2013 22:16:38 +0100
parents 75ae628522c9
children 98380e4a0ee5
line wrap: on
line diff
--- a/pytouhou/lib/opengl.pxd
+++ b/pytouhou/lib/opengl.pxd
@@ -20,6 +20,7 @@ IF USE_GLEW:
 
 cdef extern from 'GL/gl.h' nogil:
     ctypedef unsigned int GLuint
+    ctypedef unsigned short GLushort
     ctypedef int GLint
     ctypedef float GLfloat
     ctypedef float GLclampf
@@ -32,6 +33,7 @@ cdef extern from 'GL/gl.h' nogil:
 
     ctypedef enum GLenum:
         GL_ARRAY_BUFFER
+        GL_ELEMENT_ARRAY_BUFFER
         GL_STATIC_DRAW
         GL_DYNAMIC_DRAW
         GL_UNSIGNED_BYTE