Mercurial > touhou
diff pytouhou/lib/opengl.pxd @ 592:19d930f9e3f0
Add the screenshot feature, using P or Home like the original game.
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> |
---|---|
date | Wed, 23 Apr 2014 19:19:32 +0200 |
parents | 6c9d8a3d853f |
children | 23b9418e4b2f |
line wrap: on
line diff
--- a/pytouhou/lib/opengl.pxd +++ b/pytouhou/lib/opengl.pxd @@ -56,6 +56,9 @@ cdef extern from 'epoxy/gl.h' nogil: GL_TEXTURE_MIN_FILTER GL_TEXTURE_MAG_FILTER + ctypedef enum GLenum_store 'GLenum': + GL_PACK_INVERT_MESA + ctypedef enum GLenum_client_state 'GLenum': GL_COLOR_ARRAY GL_VERTEX_ARRAY @@ -143,6 +146,8 @@ cdef extern from 'epoxy/gl.h' nogil: void glBindTexture(GLenum_textarget target, GLuint texture) void glTexParameteri(GLenum_textarget target, GLenum_texparam pname, GLint param) void glTexImage2D(GLenum_textarget target, GLint level, GLint internalFormat, GLsizei width, GLsizei height, GLint border, GLenum_format format_, GLenum_type type_, const GLvoid *data) + void glGetTexImage(GLenum_textarget target, GLint level, GLenum_format format_, GLenum_type type_, GLvoid *img) + void glPixelStorei(GLenum_store pname, GLint param) void glClearColor(GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha) void glClear(GLbitfield mask)