diff pytouhou/ui/background.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 d8630c086926
children 6e733ed817bd
line wrap: on
line diff
--- a/pytouhou/ui/background.pxd
+++ b/pytouhou/ui/background.pxd
@@ -1,3 +1,5 @@
+from pytouhou.lib.opengl cimport GLuint
+
 cdef struct Vertex:
     float x, y, z
     float u, v
@@ -5,8 +7,7 @@ cdef struct Vertex:
 
 
 cdef class BackgroundRenderer:
-    cdef public texture_manager
-    cdef object texture_key
+    cdef GLuint texture
     cdef unsigned short blendfunc, nb_vertices
     cdef Vertex *vertex_buffer
     cdef unsigned int use_fixed_pipeline, vbo