comparison pytouhou/ui/opengl/background.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 c759b97f4f81
children 3c2f96f1d715
comparison
equal deleted inserted replaced
585:e0166cda75d5 586:4b0593da29d5
1 from pytouhou.lib.opengl cimport GLuint, GLushort, GLsizei 1 from pytouhou.lib.opengl cimport GLuint, GLushort, GLsizei
2 from .renderer cimport Renderer
3 2
4 cdef struct Vertex: 3 cdef struct Vertex:
5 float x, y, z 4 float x, y, z
6 float u, v 5 float u, v
7 unsigned char r, g, b, a 6 unsigned char r, g, b, a
19 cdef Vertex *vertex_buffer 18 cdef Vertex *vertex_buffer
20 cdef GLushort *indices 19 cdef GLushort *indices
21 20
22 cdef void set_state(self) nogil 21 cdef void set_state(self) nogil
23 cdef void render_background(self) except * 22 cdef void render_background(self) except *
24 cdef void load(self, background, Renderer renderer) except * 23 cdef void load(self, background, GLuint[MAX_TEXTURES] textures) except *