comparison pytouhou/lib/opengl.pxd @ 555:98380e4a0ee5

Switch to libepoxy instead of libGLEW, which will help with OpenGL portability.
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Sat, 19 Apr 2014 19:05:06 +0200
parents b18f0bd30ad0
children 94725968dabb
comparison
equal deleted inserted replaced
554:653a9f087673 555:98380e4a0ee5
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 15
16 IF USE_GLEW: 16 cdef extern from 'epoxy/gl.h' nogil:
17 cdef extern from 'GL/glew.h' nogil:
18 GLenum glewInit()
19
20
21 cdef extern from 'GL/gl.h' nogil:
22 ctypedef unsigned int GLuint 17 ctypedef unsigned int GLuint
23 ctypedef unsigned short GLushort 18 ctypedef unsigned short GLushort
24 ctypedef int GLint 19 ctypedef int GLint
25 ctypedef float GLfloat 20 ctypedef float GLfloat
26 ctypedef float GLclampf 21 ctypedef float GLclampf
121 void glFogfv(GLenum pname, const GLfloat * params) 116 void glFogfv(GLenum pname, const GLfloat * params)
122 117
123 void glHint(GLenum target, GLenum mode) 118 void glHint(GLenum target, GLenum mode)
124 void glEnableClientState(GLenum cap) 119 void glEnableClientState(GLenum cap)
125 120
121 # Here start non-1.x declarations.
126 122
127 cdef extern from 'GL/glext.h' nogil:
128 void glVertexAttribPointer(GLuint index, GLint size, GLenum type_, GLboolean normalized, GLsizei stride, const GLvoid *pointer) 123 void glVertexAttribPointer(GLuint index, GLint size, GLenum type_, GLboolean normalized, GLsizei stride, const GLvoid *pointer)
129 void glEnableVertexAttribArray(GLuint index) 124 void glEnableVertexAttribArray(GLuint index)
130 125
131 void glGenBuffers(GLsizei n, GLuint * buffers) 126 void glGenBuffers(GLsizei n, GLuint * buffers)
132 void glDeleteBuffers(GLsizei n, const GLuint * buffers) 127 void glDeleteBuffers(GLsizei n, const GLuint * buffers)