Mercurial > touhou
view pytouhou/ui/renderer.pxd @ 456:cae1ae9de430
Add native text support, MSG instructions 3 and 8, and text at the beginning of a stage.
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> |
---|---|
date | Tue, 16 Jul 2013 21:11:40 +0200 |
parents | d56536ef28e8 |
children | 1b56d62250ab |
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 cdef unsigned int vbo cdef Vertex *vertex_buffer 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)