comparison pytouhou/lib/opengl.pxd @ 450:2a352118c55a

Add back Windows support, using GLEW for OpenGL.
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Fri, 30 Aug 2013 18:21:07 +0200
parents 5d7bb2fd74f7
children a71b912b45b7
comparison
equal deleted inserted replaced
449:d56536ef28e8 450:2a352118c55a
10 ## but WITHOUT ANY WARRANTY; without even the implied warranty of 10 ## but WITHOUT ANY WARRANTY; without even the implied warranty of
11 ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 11 ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 ## GNU General Public License for more details. 12 ## GNU General Public License for more details.
13 ## 13 ##
14 14
15 cdef extern from 'GL/gl.h': 15
16 IF USE_GLEW:
17 cdef extern from 'GL/glew.h' nogil:
18 GLenum glewInit()
19
20
21 cdef extern from 'GL/gl.h' nogil:
16 ctypedef unsigned int GLuint 22 ctypedef unsigned int GLuint
17 ctypedef int GLint 23 ctypedef int GLint
18 ctypedef float GLfloat 24 ctypedef float GLfloat
19 ctypedef float GLclampf 25 ctypedef float GLclampf
20 ctypedef char GLboolean 26 ctypedef char GLboolean