view pytouhou/ui/opengl/background.pxd @ 514:3d4410de78e1

Remove some useless optimisations now that cython does them for us.
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Thu, 05 Dec 2013 20:40:11 +0100
parents 5e3e0b09a531
children b3193b43a86c
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 *