comparison pytouhou/lib/opengl.pxd @ 586:4b0593da29d5

Simplify framebuffer rendering with glDrawArrays, and move it all to its own file.
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Wed, 08 Oct 2014 16:34:24 +0200
parents e0166cda75d5
children 6c9d8a3d853f
comparison
equal deleted inserted replaced
585:e0166cda75d5 586:4b0593da29d5
130 void glVertexPointer(GLint size, GLenum_type type_, GLsizei stride, GLvoid *pointer) 130 void glVertexPointer(GLint size, GLenum_type type_, GLsizei stride, GLvoid *pointer)
131 void glTexCoordPointer(GLint size, GLenum_type type_, GLsizei stride, GLvoid *pointer) 131 void glTexCoordPointer(GLint size, GLenum_type type_, GLsizei stride, GLvoid *pointer)
132 void glColorPointer(GLint size, GLenum_type type_, GLsizei stride, GLvoid *pointer) 132 void glColorPointer(GLint size, GLenum_type type_, GLsizei stride, GLvoid *pointer)
133 133
134 void glBlendFunc(GLenum_blendfunc sfactor, GLenum_blendfunc dfactor) 134 void glBlendFunc(GLenum_blendfunc sfactor, GLenum_blendfunc dfactor)
135 void glDrawArrays(GLenum_mode mode, GLint first, GLsizei count)
135 void glDrawElements(GLenum_mode mode, GLsizei count, GLenum_type type_, const GLvoid *indices) 136 void glDrawElements(GLenum_mode mode, GLsizei count, GLenum_type type_, const GLvoid *indices)
136 void glEnable(GLenum cap) 137 void glEnable(GLenum cap)
137 void glDisable(GLenum cap) 138 void glDisable(GLenum cap)
138 139
139 void glGenTextures(GLsizei n, GLuint *textures) 140 void glGenTextures(GLsizei n, GLuint *textures)
185 void glUniform1fv(GLint location, GLsizei count, const GLfloat *value) 186 void glUniform1fv(GLint location, GLsizei count, const GLfloat *value)
186 void glUniform4fv(GLint location, GLsizei count, const GLfloat *value) 187 void glUniform4fv(GLint location, GLsizei count, const GLfloat *value)
187 void glUniformMatrix4fv(GLint location, GLsizei count, GLboolean transpose, const GLfloat *value) 188 void glUniformMatrix4fv(GLint location, GLsizei count, GLboolean transpose, const GLfloat *value)
188 189
189 void glGenFramebuffers(GLsizei n, GLuint *ids) 190 void glGenFramebuffers(GLsizei n, GLuint *ids)
191 void glDeleteFramebuffers(GLsizei n, GLuint *ids)
190 void glBindFramebuffer(GLenum_framebuffer target, GLuint framebuffer) 192 void glBindFramebuffer(GLenum_framebuffer target, GLuint framebuffer)
191 void glFramebufferTexture2D(GLenum_framebuffer target, GLenum_attachment attachment, GLenum_textarget textarget, GLuint texture, GLint level) 193 void glFramebufferTexture2D(GLenum_framebuffer target, GLenum_attachment attachment, GLenum_textarget textarget, GLuint texture, GLint level)
194
192 void glGenRenderbuffers(GLsizei n, GLuint *renderbuffers) 195 void glGenRenderbuffers(GLsizei n, GLuint *renderbuffers)
196 void glDeleteRenderbuffers(GLsizei n, GLuint *renderbuffers)
193 void glBindRenderbuffer(GLenum_renderbuffer target, GLuint renderbuffer) 197 void glBindRenderbuffer(GLenum_renderbuffer target, GLuint renderbuffer)
194 void glRenderbufferStorage(GLenum_renderbuffer target, GLenum_renderbuffer_format internalformat, GLsizei width, GLsizei height) 198 void glRenderbufferStorage(GLenum_renderbuffer target, GLenum_renderbuffer_format internalformat, GLsizei width, GLsizei height)
195 void glFramebufferRenderbuffer(GLenum_framebuffer target, GLenum_attachment attachment, GLenum_renderbuffer renderbuffertarget, GLuint renderbuffer) 199 void glFramebufferRenderbuffer(GLenum_framebuffer target, GLenum_attachment attachment, GLenum_renderbuffer renderbuffertarget, GLuint renderbuffer)
196 GLenum_framebuffer_status glCheckFramebufferStatus(GLenum_framebuffer target) 200 GLenum_framebuffer_status glCheckFramebufferStatus(GLenum_framebuffer target)
197 201