view pytouhou/ui/renderer.pxd @ 403:9589a01e6edf

Move MSG faces management to pytouhou.game.game, they have nothing to do in the MSG VM.
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Sun, 17 Feb 2013 15:20:30 +0100
parents 1c773544eaeb
children 5fe6cd6ceb48
line wrap: on
line source

cdef struct Vertex:
    int x, y, z
    float u, v
    unsigned char r, g, b, a


cdef struct VertexFloat:
    float x, y, z
    float u, v
    unsigned char r, g, b, a


cdef class Renderer:
    cdef public texture_manager
    cdef Vertex *vertex_buffer
    cdef object texture_key
    cdef unsigned short blendfunc, nb_vertices
    cdef VertexFloat *background_vertex_buffer

    cpdef render_elements(self, elements)
    cpdef render_background(self)
    cpdef prerender_background(self, background)
    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)