Mercurial > touhou
comparison pytouhou/ui/opengl/framebuffer.pxd @ 586:4b0593da29d5
Simplify framebuffer rendering with glDrawArrays, and move it all to its own file.
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> |
---|---|
date | Wed, 08 Oct 2014 16:34:24 +0200 |
parents | |
children | 6c9d8a3d853f |
comparison
equal
deleted
inserted
replaced
585:e0166cda75d5 | 586:4b0593da29d5 |
---|---|
1 from pytouhou.lib.opengl cimport GLuint | |
2 | |
3 cdef struct PassthroughVertex: | |
4 short x, y | |
5 float u, v | |
6 | |
7 | |
8 cdef class Framebuffer: | |
9 cdef GLuint fbo, texture, rbo, vbo, vao | |
10 cdef PassthroughVertex[4] buf | |
11 | |
12 cpdef bind(self) | |
13 cdef void set_state(self) nogil | |
14 cdef void render(self) nogil |