Mercurial > touhou
view pytouhou/ui/renderer.pxd @ 453:17a7f3b028f3
Raise an exception if GL context creation fails instead of failing silently.
author | Thibaut Girka <thib@sitedethib.com> |
---|---|
date | Fri, 30 Aug 2013 23:32:36 +0200 |
parents | d56536ef28e8 |
children | cae1ae9de430 |
line wrap: on
line source
from cpython cimport PyObject cdef struct Vertex: int x, y, z float u, v unsigned char r, g, b, a cdef class Renderer: cdef public texture_manager cdef unsigned int vbo cdef Vertex *vertex_buffer cdef unsigned short *indices[2][MAX_TEXTURES] cdef unsigned short last_indices[2 * MAX_TEXTURES] cdef PyObject *elements[640*3] cpdef render_elements(self, elements)