Mercurial > touhou
diff pytouhou/lib/opengl.pxd @ 491:2276229282fd
Fix gcc’s warnings with -Wall -Wextra.
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> |
---|---|
date | Fri, 04 Oct 2013 14:32:28 +0200 |
parents | a71b912b45b7 |
children | 75ae628522c9 |
line wrap: on
line diff
--- a/pytouhou/lib/opengl.pxd +++ b/pytouhou/lib/opengl.pxd @@ -93,8 +93,6 @@ cdef extern from 'GL/gl.h' nogil: void glVertexPointer(GLint size, GLenum type_, GLsizei stride, GLvoid *pointer) void glTexCoordPointer(GLint size, GLenum type_, GLsizei stride, GLvoid *pointer) void glColorPointer(GLint size, GLenum type_, GLsizei stride, GLvoid *pointer) - void glVertexAttribPointer(GLuint index, GLint size, GLenum type_, GLboolean normalized, GLsizei stride, const GLvoid *pointer) - void glEnableVertexAttribArray(GLuint index) void glBlendFunc(GLenum sfactor, GLenum dfactor) void glDrawArrays(GLenum mode, GLint first, GLsizei count) @@ -102,11 +100,6 @@ cdef extern from 'GL/gl.h' nogil: void glEnable(GLenum cap) void glDisable(GLenum cap) - void glGenBuffers(GLsizei n, GLuint * buffers) - void glDeleteBuffers(GLsizei n, const GLuint * buffers) - void glBindBuffer(GLenum target, GLuint buffer_) - void glBufferData(GLenum target, GLsizeiptr size, const GLvoid *data, GLenum usage) - void glGenTextures(GLsizei n, GLuint *textures) void glDeleteTextures(GLsizei n, const GLuint *textures) void glBindTexture(GLenum target, GLuint texture) @@ -128,6 +121,16 @@ cdef extern from 'GL/gl.h' nogil: void glHint(GLenum target, GLenum mode) void glEnableClientState(GLenum cap) + +cdef extern from 'GL/glext.h' nogil: + void glVertexAttribPointer(GLuint index, GLint size, GLenum type_, GLboolean normalized, GLsizei stride, const GLvoid *pointer) + void glEnableVertexAttribArray(GLuint index) + + void glGenBuffers(GLsizei n, GLuint * buffers) + void glDeleteBuffers(GLsizei n, const GLuint * buffers) + void glBindBuffer(GLenum target, GLuint buffer_) + void glBufferData(GLenum target, GLsizeiptr size, const GLvoid *data, GLenum usage) + GLuint glCreateProgram() GLuint glCreateShader(GLenum shaderType) void glLinkProgram(GLuint program)