comparison pytouhou/ui/background.pxd @ 426:5d7bb2fd74f7

Never keep texture on the host when it has been uploaded, and prevent them from being decoded again.
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Tue, 16 Jul 2013 21:11:35 +0200
parents d8630c086926
children 6e733ed817bd
comparison
equal deleted inserted replaced
425:1104dc2553ee 426:5d7bb2fd74f7
1 from pytouhou.lib.opengl cimport GLuint
2
1 cdef struct Vertex: 3 cdef struct Vertex:
2 float x, y, z 4 float x, y, z
3 float u, v 5 float u, v
4 unsigned char r, g, b, a 6 unsigned char r, g, b, a
5 7
6 8
7 cdef class BackgroundRenderer: 9 cdef class BackgroundRenderer:
8 cdef public texture_manager 10 cdef GLuint texture
9 cdef object texture_key
10 cdef unsigned short blendfunc, nb_vertices 11 cdef unsigned short blendfunc, nb_vertices
11 cdef Vertex *vertex_buffer 12 cdef Vertex *vertex_buffer
12 cdef unsigned int use_fixed_pipeline, vbo 13 cdef unsigned int use_fixed_pipeline, vbo
13 14
14 cpdef render_background(self) 15 cpdef render_background(self)