comparison pytouhou/ui/renderer.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 5fe6cd6ceb48
children d56536ef28e8
comparison
equal deleted inserted replaced
422:52829ebe2561 423:d8630c086926
2 int x, y, z 2 int x, y, z
3 float u, v 3 float u, v
4 unsigned char r, g, b, a 4 unsigned char r, g, b, a
5 5
6 6
7 cdef struct VertexFloat:
8 float x, y, z
9 float u, v
10 unsigned char r, g, b, a
11
12
13 cdef class Renderer: 7 cdef class Renderer:
14 cdef public texture_manager 8 cdef public texture_manager
9 cdef unsigned int vbo
15 cdef Vertex *vertex_buffer 10 cdef Vertex *vertex_buffer
16 cdef object texture_key
17 cdef unsigned short blendfunc, nb_vertices
18 cdef VertexFloat *background_vertex_buffer
19 11
20 cpdef render_elements(self, elements) 12 cpdef render_elements(self, elements)
21 cpdef render_background(self)
22 cpdef prerender_background(self, background)