diff pytouhou/ui/background.pxd @ 423:d8630c086926

Replace Pyglet with our own Cython OpenGL wrapper.
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Tue, 16 Jul 2013 21:07:15 +0200
parents
children 5d7bb2fd74f7
line wrap: on
line diff
new file mode 100644
--- /dev/null
+++ b/pytouhou/ui/background.pxd
@@ -0,0 +1,15 @@
+cdef struct Vertex:
+    float x, y, z
+    float u, v
+    unsigned char r, g, b, a
+
+
+cdef class BackgroundRenderer:
+    cdef public texture_manager
+    cdef object texture_key
+    cdef unsigned short blendfunc, nb_vertices
+    cdef Vertex *vertex_buffer
+    cdef unsigned int use_fixed_pipeline, vbo
+
+    cpdef render_background(self)
+    cpdef prerender(self, background)