comparison pytouhou/ui/opengl/background.pxd @ 558:94725968dabb

Use vertex array objects, to be compatible with OpenGL 3.1+ core profile.
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Thu, 12 Dec 2013 13:47:17 +0100
parents b18f0bd30ad0
children c759b97f4f81
comparison
equal deleted inserted replaced
557:0f2af7552462 558:94725968dabb
12 cdef GLsizei nb_indices 12 cdef GLsizei nb_indices
13 cdef unsigned int use_fixed_pipeline 13 cdef unsigned int use_fixed_pipeline
14 14
15 # For modern GL. 15 # For modern GL.
16 cdef GLuint vbo, ibo 16 cdef GLuint vbo, ibo
17 cdef GLuint vao
17 18
18 # For fixed pipeline. 19 # For fixed pipeline.
19 cdef Vertex *vertex_buffer 20 cdef Vertex *vertex_buffer
20 cdef GLushort *indices 21 cdef GLushort *indices
21 22
23 cdef void set_state(self) nogil
22 cdef void render_background(self) except * 24 cdef void render_background(self) except *
23 cdef void load(self, background, Renderer renderer) except * 25 cdef void load(self, background, Renderer renderer) except *