comparison pytouhou/ui/opengl/renderer.pxd @ 520:c0b3f8709f74

Store the indices of the framebuffer in a static ibo.
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Thu, 12 Dec 2013 13:15:43 +0100
parents 75ae628522c9
children 63440d1e0717
comparison
equal deleted inserted replaced
519:b18f0bd30ad0 520:c0b3f8709f74
20 20
21 21
22 cdef class Renderer: 22 cdef class Renderer:
23 cdef TextureManager texture_manager 23 cdef TextureManager texture_manager
24 cdef FontManager font_manager 24 cdef FontManager font_manager
25 cdef GLuint vbo, framebuffer_vbo
26 cdef Vertex vertex_buffer[MAX_ELEMENTS] 25 cdef Vertex vertex_buffer[MAX_ELEMENTS]
27 cdef long x, y, width, height 26 cdef long x, y, width, height
27
28 # For modern GL.
29 cdef GLuint vbo, framebuffer_vbo, framebuffer_ibo
28 30
29 cdef bint use_fixed_pipeline #XXX 31 cdef bint use_fixed_pipeline #XXX
30 32
31 cdef GLuint textures[MAX_TEXTURES] 33 cdef GLuint textures[MAX_TEXTURES]
32 cdef unsigned short *indices[MAX_TEXTURES][2] 34 cdef unsigned short *indices[MAX_TEXTURES][2]