comparison pytouhou/ui/opengl/background.pxd @ 513:5e3e0b09a531

Move the OpenGL backend to its own package.
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Thu, 05 Dec 2013 02:16:31 +0100
parents pytouhou/ui/background.pxd@feecdb4a8928
children b3193b43a86c
comparison
equal deleted inserted replaced
512:b39ad30c6620 513:5e3e0b09a531
1 from pytouhou.lib.opengl cimport GLuint
2
3 cdef struct Vertex:
4 float x, y, z
5 float u, v
6 unsigned char r, g, b, a
7
8
9 cdef class BackgroundRenderer:
10 cdef GLuint texture
11 cdef unsigned short blendfunc, nb_vertices
12 cdef Vertex *vertex_buffer
13 cdef unsigned int use_fixed_pipeline, vbo
14 cdef object background
15
16 cdef void render_background(self) except *
17 cdef void load(self, background) except *