comparison pytouhou/lib/opengl.pxd @ 424:f4d76d3d6f2a

Make the Shader class use cython too.
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Tue, 16 Jul 2013 21:07:15 +0200
parents d8630c086926
children 5d7bb2fd74f7
comparison
equal deleted inserted replaced
423:d8630c086926 424:f4d76d3d6f2a
68 GL_NICEST 68 GL_NICEST
69 GL_COLOR_ARRAY 69 GL_COLOR_ARRAY
70 GL_VERTEX_ARRAY 70 GL_VERTEX_ARRAY
71 GL_TEXTURE_COORD_ARRAY 71 GL_TEXTURE_COORD_ARRAY
72 72
73 GL_VERTEX_SHADER
74 GL_FRAGMENT_SHADER
75 GL_INFO_LOG_LENGTH
76 GL_COMPILE_STATUS
77 GL_LINK_STATUS
78
73 void glVertexPointer(GLint size, GLenum type_, GLsizei stride, GLvoid *pointer) 79 void glVertexPointer(GLint size, GLenum type_, GLsizei stride, GLvoid *pointer)
74 void glTexCoordPointer(GLint size, GLenum type_, GLsizei stride, GLvoid *pointer) 80 void glTexCoordPointer(GLint size, GLenum type_, GLsizei stride, GLvoid *pointer)
75 void glColorPointer(GLint size, GLenum type_, GLsizei stride, GLvoid *pointer) 81 void glColorPointer(GLint size, GLenum type_, GLsizei stride, GLvoid *pointer)
76 void glVertexAttribPointer(GLuint index, GLint size, GLenum type_, GLboolean normalized, GLsizei stride, const GLvoid *pointer) 82 void glVertexAttribPointer(GLuint index, GLint size, GLenum type_, GLboolean normalized, GLsizei stride, const GLvoid *pointer)
77 void glEnableVertexAttribArray(GLuint index) 83 void glEnableVertexAttribArray(GLuint index)
104 void glFogf(GLenum pname, GLfloat param) 110 void glFogf(GLenum pname, GLfloat param)
105 void glFogfv(GLenum pname, const GLfloat * params) 111 void glFogfv(GLenum pname, const GLfloat * params)
106 112
107 void glHint(GLenum target, GLenum mode) 113 void glHint(GLenum target, GLenum mode)
108 void glEnableClientState(GLenum cap) 114 void glEnableClientState(GLenum cap)
115
116 GLuint glCreateProgram()
117 GLuint glCreateShader(GLenum shaderType)
118 void glLinkProgram(GLuint program)
119 void glUseProgram(GLuint program)
120 void glGetProgramiv(GLuint program, GLenum pname, GLint *params)
121 void glGetProgramInfoLog(GLuint program, GLsizei maxLength, GLsizei *length, GLchar *infoLog)
122
123 void glShaderSource(GLuint shader, GLsizei count, const GLchar **string, const GLint *length)
124 void glCompileShader(GLuint shader)
125 void glGetShaderiv(GLuint shader, GLenum pname, GLint *params)
126 void glGetShaderInfoLog(GLuint shader, GLsizei maxLength, GLsizei *length, GLchar *infoLog)
127 void glAttachShader(GLuint program, GLuint shader)
128
129 GLint glGetUniformLocation(GLuint program, const GLchar *name)
130 void glBindAttribLocation(GLuint program, GLuint index, const GLchar *name)
131 void glUniform1fv(GLint location, GLsizei count, const GLfloat *value)
132 void glUniform4fv(GLint location, GLsizei count, const GLfloat *value)
133 void glUniformMatrix4fv(GLint location, GLsizei count, GLboolean transpose, const GLfloat *value)