view pytouhou/ui/background.pxd @ 500:777544d11578

[Boss rush] Mark removed lasers as such
author Thibaut Girka <thib@sitedethib.com>
date Fri, 08 Nov 2013 13:40:53 +0100
parents feecdb4a8928
children
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
    cdef object background

    cdef void render_background(self) except *
    cdef void load(self, background) except *