Mercurial > touhou
diff 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 |
line wrap: on
line diff
--- a/pytouhou/ui/renderer.pxd +++ b/pytouhou/ui/renderer.pxd @@ -4,19 +4,9 @@ cdef struct Vertex: unsigned char r, g, b, a -cdef struct VertexFloat: - float x, y, z - float u, v - unsigned char r, g, b, a - - cdef class Renderer: cdef public texture_manager + cdef unsigned int vbo cdef Vertex *vertex_buffer - cdef object texture_key - cdef unsigned short blendfunc, nb_vertices - cdef VertexFloat *background_vertex_buffer cpdef render_elements(self, elements) - cpdef render_background(self) - cpdef prerender_background(self, background)