comparison pytouhou/ui/opengl/renderer.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 6c9d8a3d853f
children ec972eb44391
comparison
equal deleted inserted replaced
616:4ce3ef053a25 617:a6af3ff86612
33 cdef unsigned short *indices[MAX_TEXTURES][2] 33 cdef unsigned short *indices[MAX_TEXTURES][2]
34 cdef unsigned short last_indices[2 * MAX_TEXTURES] 34 cdef unsigned short last_indices[2 * MAX_TEXTURES]
35 cdef PyObject *elements[640*3] 35 cdef PyObject *elements[640*3]
36 36
37 cdef void set_state(self) nogil 37 cdef void set_state(self) nogil
38 cdef void render_elements(self, elements) except * 38 cdef bint render_elements(self, elements) except True
39 cdef void render_quads(self, rects, colors, GLuint texture) except * 39 cdef bint render_quads(self, rects, colors, GLuint texture) except True