view pytouhou/ui/renderer.pxd @ 398:8d252cdb495f

Move the background rendering code to pytouhou.ui.renderer.
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Tue, 12 Feb 2013 18:20:49 +0100
parents 74471afbac37
children 1c773544eaeb
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 render_background(self, back)
    cpdef ortho_2d(self, left, right, bottom, top)
    cpdef look_at(self, eye, center, up)
    cpdef perspective(self, fovy, aspect, zNear, zFar)
    cpdef setup_camera(self, dx, dy, dz)