view pytouhou/ui/renderer.pxd @ 382:b9aecdc6f72f

Fix the anmviewer, broken since changeset 370:74471afbac37.
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Fri, 07 Sep 2012 13:04:30 +0200
parents 74471afbac37
children 8d252cdb495f
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 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)