diff pytouhou/ui/opengl/background.pxd @ 515:b3193b43a86c

Add an indirection layer for textures, to cope with drivers assigning them random names.
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Fri, 06 Dec 2013 19:02:42 +0100
parents 5e3e0b09a531
children b18f0bd30ad0
line wrap: on
line diff
--- a/pytouhou/ui/opengl/background.pxd
+++ b/pytouhou/ui/opengl/background.pxd
@@ -1,4 +1,5 @@
 from pytouhou.lib.opengl cimport GLuint
+from .renderer cimport Renderer
 
 cdef struct Vertex:
     float x, y, z
@@ -14,4 +15,4 @@ cdef class BackgroundRenderer:
     cdef object background
 
     cdef void render_background(self) except *
-    cdef void load(self, background) except *
+    cdef void load(self, background, Renderer renderer) except *