view pytouhou/ui/renderer.pxd @ 227:31460b2ec530

Actually use offset of Sprite in spellcard’s effect, and place it correctly.
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Tue, 20 Dec 2011 21:36:14 +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)