Mercurial > touhou
comparison pytouhou/ui/shader.pxd @ 458:1b56d62250ab
Make pytouhou.ui.{window,shader,game{runner,renderer}} extension types.
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> |
---|---|
date | Thu, 05 Sep 2013 23:11:54 +0200 |
parents | |
children | feecdb4a8928 |
comparison
equal
deleted
inserted
replaced
457:4ccc47828002 | 458:1b56d62250ab |
---|---|
1 from pytouhou.lib.opengl cimport GLuint, GLint, GLchar, GLenum, GLfloat | |
2 from pytouhou.utils.matrix cimport Matrix | |
3 | |
4 cdef class Shader: | |
5 cdef GLuint handle | |
6 cdef bint linked | |
7 cdef dict location_cache | |
8 | |
9 cdef void create_shader(self, const GLchar *string, GLenum shader_type) | |
10 cdef void link(self) | |
11 cdef GLint get_uniform_location(self, name) | |
12 cdef void bind(self) nogil | |
13 cdef void uniform_1(self, name, GLfloat val) | |
14 cdef void uniform_4(self, name, GLfloat a, GLfloat b, GLfloat c, GLfloat d) | |
15 cdef void uniform_matrix(self, name, Matrix mat) |