Mercurial > touhou
comparison pytouhou/ui/opengl/background.pyx @ 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 | a6a191e371c7 |
children |
comparison
equal
deleted
inserted
replaced
616:4ce3ef053a25 | 617:a6af3ff86612 |
---|---|
105 | 105 |
106 if use_debug_group: | 106 if use_debug_group: |
107 glPopDebugGroup() | 107 glPopDebugGroup() |
108 | 108 |
109 | 109 |
110 cdef void load(self, background, GLuint[MAX_TEXTURES] textures) except *: | 110 cdef bint load(self, background, GLuint[MAX_TEXTURES] textures) except True: |
111 cdef float ox, oy, oz, ox2, oy2, oz2 | 111 cdef float ox, oy, oz, ox2, oy2, oz2 |
112 cdef GLsizei nb_vertices = 0, nb_indices = 0 | 112 cdef GLsizei nb_vertices = 0, nb_indices = 0 |
113 | 113 |
114 vertex_buffer = <Vertex*> malloc(65536 * sizeof(Vertex)) | 114 vertex_buffer = <Vertex*> malloc(65536 * sizeof(Vertex)) |
115 | 115 |