view pytouhou/ui/background.pxd @ 431:77c0e9a53795

Use cythonize in setup.py, also compile .py files, and entirely remove pyximport support.
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Fri, 30 Aug 2013 14:01:09 +0200
parents 5d7bb2fd74f7
children 6e733ed817bd
line wrap: on
line source

from pytouhou.lib.opengl cimport GLuint

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


cdef class BackgroundRenderer:
    cdef GLuint texture
    cdef unsigned short blendfunc, nb_vertices
    cdef Vertex *vertex_buffer
    cdef unsigned int use_fixed_pipeline, vbo

    cpdef render_background(self)
    cpdef prerender(self, background)