comparison pytouhou/ui/renderer.pxd @ 222:5cac48b328ad

Refactor rendering code a bit. Move duplicated camera setup code to a new “setup_camera” method, and move common methods to a new “Renderer” module in order to make individual sprite rendering easier.
author Thibaut Girka <thib@sitedethib.com>
date Sun, 18 Dec 2011 20:47:48 +0100
parents
children 74471afbac37
comparison
equal deleted inserted replaced
221:5c3600e0f0cd 222:5cac48b328ad
1 cdef struct Vertex:
2 int x, y, z
3 float u, v
4 unsigned char r, g, b, a
5
6
7 cdef class Renderer:
8 cdef public texture_manager
9 cdef Vertex *vertex_buffer
10
11 cpdef render_elements(self, elements)
12 cpdef setup_camera(self, dx, dy, dz)