comparison pytouhou/lib/opengl.pxd @ 462:a71b912b45b7

Render to framebuffers first, and reposition some interface elements in the game area.
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Wed, 11 Sep 2013 00:36:50 +0200
parents 2a352118c55a
children 2276229282fd
comparison
equal deleted inserted replaced
461:6af3854ed826 462:a71b912b45b7
39 GL_INT 39 GL_INT
40 GL_FLOAT 40 GL_FLOAT
41 GL_SRC_ALPHA 41 GL_SRC_ALPHA
42 GL_ONE_MINUS_SRC_ALPHA 42 GL_ONE_MINUS_SRC_ALPHA
43 GL_ONE 43 GL_ONE
44 GL_ZERO
44 GL_TEXTURE_2D 45 GL_TEXTURE_2D
45 GL_TRIANGLES 46 GL_TRIANGLES
46 GL_DEPTH_TEST 47 GL_DEPTH_TEST
47 GL_QUADS 48 GL_QUADS
48 49
79 GL_VERTEX_SHADER 80 GL_VERTEX_SHADER
80 GL_FRAGMENT_SHADER 81 GL_FRAGMENT_SHADER
81 GL_INFO_LOG_LENGTH 82 GL_INFO_LOG_LENGTH
82 GL_COMPILE_STATUS 83 GL_COMPILE_STATUS
83 GL_LINK_STATUS 84 GL_LINK_STATUS
85
86 GL_FRAMEBUFFER
87 GL_COLOR_ATTACHMENT0
88 GL_RENDERBUFFER
89 GL_DEPTH_COMPONENT
90 GL_DEPTH_ATTACHMENT
91 GL_FRAMEBUFFER_COMPLETE
84 92
85 void glVertexPointer(GLint size, GLenum type_, GLsizei stride, GLvoid *pointer) 93 void glVertexPointer(GLint size, GLenum type_, GLsizei stride, GLvoid *pointer)
86 void glTexCoordPointer(GLint size, GLenum type_, GLsizei stride, GLvoid *pointer) 94 void glTexCoordPointer(GLint size, GLenum type_, GLsizei stride, GLvoid *pointer)
87 void glColorPointer(GLint size, GLenum type_, GLsizei stride, GLvoid *pointer) 95 void glColorPointer(GLint size, GLenum type_, GLsizei stride, GLvoid *pointer)
88 void glVertexAttribPointer(GLuint index, GLint size, GLenum type_, GLboolean normalized, GLsizei stride, const GLvoid *pointer) 96 void glVertexAttribPointer(GLuint index, GLint size, GLenum type_, GLboolean normalized, GLsizei stride, const GLvoid *pointer)
136 GLint glGetUniformLocation(GLuint program, const GLchar *name) 144 GLint glGetUniformLocation(GLuint program, const GLchar *name)
137 void glBindAttribLocation(GLuint program, GLuint index, const GLchar *name) 145 void glBindAttribLocation(GLuint program, GLuint index, const GLchar *name)
138 void glUniform1fv(GLint location, GLsizei count, const GLfloat *value) 146 void glUniform1fv(GLint location, GLsizei count, const GLfloat *value)
139 void glUniform4fv(GLint location, GLsizei count, const GLfloat *value) 147 void glUniform4fv(GLint location, GLsizei count, const GLfloat *value)
140 void glUniformMatrix4fv(GLint location, GLsizei count, GLboolean transpose, const GLfloat *value) 148 void glUniformMatrix4fv(GLint location, GLsizei count, GLboolean transpose, const GLfloat *value)
149
150 void glGenFramebuffers(GLsizei n, GLuint *ids)
151 void glBindFramebuffer(GLenum target, GLuint framebuffer)
152 void glFramebufferTexture2D(GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level)
153 void glGenRenderbuffers(GLsizei n, GLuint *renderbuffers)
154 void glBindRenderbuffer(GLenum target, GLuint renderbuffer)
155 void glRenderbufferStorage(GLenum target, GLenum internalformat, GLsizei width, GLsizei height)
156 void glFramebufferRenderbuffer(GLenum target, GLenum attachment, GLenum renderbuffertarget, GLuint renderbuffer)
157 GLenum glCheckFramebufferStatus(GLenum target)