Mercurial > touhou
comparison pytouhou/ui/opengl/background.pxd @ 515:b3193b43a86c
Add an indirection layer for textures, to cope with drivers assigning them random names.
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> |
---|---|
date | Fri, 06 Dec 2013 19:02:42 +0100 |
parents | 5e3e0b09a531 |
children | b18f0bd30ad0 |
comparison
equal
deleted
inserted
replaced
514:3d4410de78e1 | 515:b3193b43a86c |
---|---|
1 from pytouhou.lib.opengl cimport GLuint | 1 from pytouhou.lib.opengl cimport GLuint |
2 from .renderer cimport Renderer | |
2 | 3 |
3 cdef struct Vertex: | 4 cdef struct Vertex: |
4 float x, y, z | 5 float x, y, z |
5 float u, v | 6 float u, v |
6 unsigned char r, g, b, a | 7 unsigned char r, g, b, a |
12 cdef Vertex *vertex_buffer | 13 cdef Vertex *vertex_buffer |
13 cdef unsigned int use_fixed_pipeline, vbo | 14 cdef unsigned int use_fixed_pipeline, vbo |
14 cdef object background | 15 cdef object background |
15 | 16 |
16 cdef void render_background(self) except * | 17 cdef void render_background(self) except * |
17 cdef void load(self, background) except * | 18 cdef void load(self, background, Renderer renderer) except * |