Mercurial > touhou
diff 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 |
line wrap: on
line diff
--- a/pytouhou/lib/opengl.pxd +++ b/pytouhou/lib/opengl.pxd @@ -12,7 +12,13 @@ ## GNU General Public License for more details. ## -cdef extern from 'GL/gl.h': + +IF USE_GLEW: + cdef extern from 'GL/glew.h' nogil: + GLenum glewInit() + + +cdef extern from 'GL/gl.h' nogil: ctypedef unsigned int GLuint ctypedef int GLint ctypedef float GLfloat