Mercurial > touhou
comparison pytouhou/ui/opengl/shader.pxd @ 617:a6af3ff86612
Change all “void except *” function into “bint except True”, to prevent PyErr_Occurred() from being called at each call.
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> |
---|---|
date | Sun, 29 Mar 2015 00:08:20 +0100 |
parents | 538b52aafbca |
children |
comparison
equal
deleted
inserted
replaced
616:4ce3ef053a25 | 617:a6af3ff86612 |
---|---|
4 cdef class Shader: | 4 cdef class Shader: |
5 cdef GLuint handle | 5 cdef GLuint handle |
6 cdef bint linked | 6 cdef bint linked |
7 cdef dict location_cache | 7 cdef dict location_cache |
8 | 8 |
9 cdef void create_shader(self, const GLchar *string, GLenum_shader shader_type) except * | 9 cdef bint create_shader(self, const GLchar *string, GLenum_shader shader_type) except True |
10 cdef void link(self) except * | 10 cdef bint link(self) except True |
11 cdef GLint get_uniform_location(self, name) except -1 | 11 cdef GLint get_uniform_location(self, name) except -1 |
12 cdef void bind(self) nogil | 12 cdef void bind(self) nogil |
13 cdef void uniform_1(self, name, GLfloat val) except * | 13 cdef bint uniform_1(self, name, GLfloat val) except True |
14 cdef void uniform_4(self, name, GLfloat a, GLfloat b, GLfloat c, GLfloat d) except * | 14 cdef bint uniform_4(self, name, GLfloat a, GLfloat b, GLfloat c, GLfloat d) except True |
15 cdef void uniform_matrix(self, name, Matrix *mat) except * | 15 cdef bint uniform_matrix(self, name, Matrix *mat) except True |