Mercurial > touhou
view pytouhou/ui/renderer.pxd @ 276:754ff6452d7e
Fix spellcard number 0.
Spellcard number 0 was evaluated as False in truth checks.
Now, the spellcard is a tuple, with (number, name) and will always evaluate as True.
author | Thibaut Girka <thib@sitedethib.com> |
---|---|
date | Sun, 05 Feb 2012 23:45:41 +0100 |
parents | 5cac48b328ad |
children | 74471afbac37 |
line wrap: on
line source
cdef struct Vertex: int x, y, z float u, v unsigned char r, g, b, a cdef class Renderer: cdef public texture_manager cdef Vertex *vertex_buffer cpdef render_elements(self, elements) cpdef setup_camera(self, dx, dy, dz)