view pytouhou/ui/opengl/framebuffer.pxd @ 606:3c2f96f1d715

Fix compilation under Cython 0.22, by making the pyx and the pxd declarations’ except clause similar.
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Wed, 26 Nov 2014 13:36:38 +0100
parents 6c9d8a3d853f
children 1b31169dc344
line wrap: on
line source

from pytouhou.lib.opengl cimport GLuint

cdef struct PassthroughVertex:
    short x, y
    float u, v


cdef class Framebuffer:
    cdef GLuint fbo, texture, rbo, vbo, vao
    cdef PassthroughVertex[4] buf
    cdef int x, y, width, height

    cpdef bind(self)
    cdef void set_state(self) nogil
    cdef void render(self, int x, int y, int width, int height) nogil