Mercurial > touhou
view pytouhou/ui/opengl/framebuffer.pxd @ 616:4ce3ef053a25
Remove every case where an exception could be silently eaten by a cdef function.
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> |
---|---|
date | Sat, 28 Mar 2015 23:21:15 +0100 |
parents | 1b31169dc344 |
children | a6af3ff86612 |
line wrap: on
line source
from pytouhou.lib.opengl cimport GLuint from pytouhou.utils.matrix cimport Matrix from .shader cimport Shader cdef struct PassthroughVertex: short x, y float u, v cdef class Framebuffer: cdef GLuint fbo, texture, rbo # Used by the use_framebuffer_blit path cdef int x, y, width, height # Used by the other one. cdef GLuint vbo, vao cdef Shader shader cdef Matrix *mvp cdef PassthroughVertex[4] buf cpdef bind(self) cdef void set_state(self) nogil cdef void render(self, int x, int y, int width, int height) except *