diff pytouhou/lib/opengl.pxd @ 426:5d7bb2fd74f7

Never keep texture on the host when it has been uploaded, and prevent them from being decoded again.
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Tue, 16 Jul 2013 21:11:35 +0200
parents f4d76d3d6f2a
children 2a352118c55a
line wrap: on
line diff
--- a/pytouhou/lib/opengl.pxd
+++ b/pytouhou/lib/opengl.pxd
@@ -94,6 +94,7 @@ cdef extern from 'GL/gl.h':
     void glBufferData(GLenum target, GLsizeiptr size, const GLvoid *data, GLenum usage)
 
     void glGenTextures(GLsizei n, GLuint *textures)
+    void glDeleteTextures(GLsizei n, const GLuint *textures)
     void glBindTexture(GLenum target, GLuint texture)
     void glTexParameteri(GLenum target, GLenum pname, GLint param)
     void glTexImage2D(GLenum target, GLint level, GLint internalFormat, GLsizei width, GLsizei height, GLint border, GLenum format_, GLenum type_, const GLvoid *data)