Mercurial > touhou
view pytouhou/ui/renderer.pxd @ 460:ec327e58b477
Add a context manager to initialize and shut down SDL outside of Window.
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> |
---|---|
date | Fri, 06 Sep 2013 23:29:19 +0200 |
parents | 1b56d62250ab |
children | a71b912b45b7 |
line wrap: on
line source
from cpython cimport PyObject cdef struct Vertex: int x, y, z float u, v unsigned char r, g, b, a cdef class Renderer: cdef public texture_manager, font_manager cdef unsigned int vbo cdef Vertex *vertex_buffer cdef bint use_fixed_pipeline #XXX cdef unsigned short *indices[2][MAX_TEXTURES] cdef unsigned short last_indices[2 * MAX_TEXTURES] cdef PyObject *elements[640*3] cpdef render_elements(self, elements) cpdef render_quads(self, rects, colors, texture)