Mercurial > touhou
comparison 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 |
comparison
equal
deleted
inserted
replaced
490:1b532e7dd521 | 491:2276229282fd |
---|---|
91 GL_FRAMEBUFFER_COMPLETE | 91 GL_FRAMEBUFFER_COMPLETE |
92 | 92 |
93 void glVertexPointer(GLint size, GLenum type_, GLsizei stride, GLvoid *pointer) | 93 void glVertexPointer(GLint size, GLenum type_, GLsizei stride, GLvoid *pointer) |
94 void glTexCoordPointer(GLint size, GLenum type_, GLsizei stride, GLvoid *pointer) | 94 void glTexCoordPointer(GLint size, GLenum type_, GLsizei stride, GLvoid *pointer) |
95 void glColorPointer(GLint size, GLenum type_, GLsizei stride, GLvoid *pointer) | 95 void glColorPointer(GLint size, GLenum type_, GLsizei stride, GLvoid *pointer) |
96 void glVertexAttribPointer(GLuint index, GLint size, GLenum type_, GLboolean normalized, GLsizei stride, const GLvoid *pointer) | |
97 void glEnableVertexAttribArray(GLuint index) | |
98 | 96 |
99 void glBlendFunc(GLenum sfactor, GLenum dfactor) | 97 void glBlendFunc(GLenum sfactor, GLenum dfactor) |
100 void glDrawArrays(GLenum mode, GLint first, GLsizei count) | 98 void glDrawArrays(GLenum mode, GLint first, GLsizei count) |
101 void glDrawElements(GLenum mode, GLsizei count, GLenum type_, const GLvoid *indices) | 99 void glDrawElements(GLenum mode, GLsizei count, GLenum type_, const GLvoid *indices) |
102 void glEnable(GLenum cap) | 100 void glEnable(GLenum cap) |
103 void glDisable(GLenum cap) | 101 void glDisable(GLenum cap) |
104 | |
105 void glGenBuffers(GLsizei n, GLuint * buffers) | |
106 void glDeleteBuffers(GLsizei n, const GLuint * buffers) | |
107 void glBindBuffer(GLenum target, GLuint buffer_) | |
108 void glBufferData(GLenum target, GLsizeiptr size, const GLvoid *data, GLenum usage) | |
109 | 102 |
110 void glGenTextures(GLsizei n, GLuint *textures) | 103 void glGenTextures(GLsizei n, GLuint *textures) |
111 void glDeleteTextures(GLsizei n, const GLuint *textures) | 104 void glDeleteTextures(GLsizei n, const GLuint *textures) |
112 void glBindTexture(GLenum target, GLuint texture) | 105 void glBindTexture(GLenum target, GLuint texture) |
113 void glTexParameteri(GLenum target, GLenum pname, GLint param) | 106 void glTexParameteri(GLenum target, GLenum pname, GLint param) |
125 void glFogf(GLenum pname, GLfloat param) | 118 void glFogf(GLenum pname, GLfloat param) |
126 void glFogfv(GLenum pname, const GLfloat * params) | 119 void glFogfv(GLenum pname, const GLfloat * params) |
127 | 120 |
128 void glHint(GLenum target, GLenum mode) | 121 void glHint(GLenum target, GLenum mode) |
129 void glEnableClientState(GLenum cap) | 122 void glEnableClientState(GLenum cap) |
123 | |
124 | |
125 cdef extern from 'GL/glext.h' nogil: | |
126 void glVertexAttribPointer(GLuint index, GLint size, GLenum type_, GLboolean normalized, GLsizei stride, const GLvoid *pointer) | |
127 void glEnableVertexAttribArray(GLuint index) | |
128 | |
129 void glGenBuffers(GLsizei n, GLuint * buffers) | |
130 void glDeleteBuffers(GLsizei n, const GLuint * buffers) | |
131 void glBindBuffer(GLenum target, GLuint buffer_) | |
132 void glBufferData(GLenum target, GLsizeiptr size, const GLvoid *data, GLenum usage) | |
130 | 133 |
131 GLuint glCreateProgram() | 134 GLuint glCreateProgram() |
132 GLuint glCreateShader(GLenum shaderType) | 135 GLuint glCreateShader(GLenum shaderType) |
133 void glLinkProgram(GLuint program) | 136 void glLinkProgram(GLuint program) |
134 void glUseProgram(GLuint program) | 137 void glUseProgram(GLuint program) |