comparison pytouhou/ui/opengl/gamerenderer.pyx @ 606:3c2f96f1d715

Fix compilation under Cython 0.22, by making the pyx and the pxd declarations’ except clause similar.
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Wed, 26 Nov 2014 13:36:38 +0100
parents ab131d04987d
children 1b31169dc344
comparison
equal deleted inserted replaced
605:d6ead6f0ba80 606:3c2f96f1d715
127 127
128 # Cleanup. 128 # Cleanup.
129 free(capture_memory) 129 free(capture_memory)
130 130
131 131
132 cdef void render_game(self, Game game): 132 cdef void render_game(self, Game game) except *:
133 cdef long game_x, game_y 133 cdef long game_x, game_y
134 cdef float x, y, z, dx, dy, dz 134 cdef float x, y, z, dx, dy, dz
135 cdef float fog_data[4] 135 cdef float fog_data[4]
136 cdef float fog_start, fog_end 136 cdef float fog_start, fog_end
137 cdef unsigned char fog_r, fog_g, fog_b 137 cdef unsigned char fog_r, fog_g, fog_b
241 241
242 if use_debug_group: 242 if use_debug_group:
243 glPopDebugGroup() 243 glPopDebugGroup()
244 244
245 245
246 cdef void render_text(self, dict texts): 246 cdef void render_text(self, dict texts) except *:
247 cdef NativeText label 247 cdef NativeText label
248 248
249 if self.font_manager is None: 249 if self.font_manager is None:
250 return 250 return
251 251
264 self.render_quads([shadow_rect, rect], [shadow, gradient], texture) 264 self.render_quads([shadow_rect, rect], [shadow, gradient], texture)
265 else: 265 else:
266 self.render_quads([rect], [gradient], texture) 266 self.render_quads([rect], [gradient], texture)
267 267
268 268
269 cdef void render_interface(self, interface, game_boss): 269 cdef void render_interface(self, interface, game_boss) except *:
270 cdef GlyphCollection label 270 cdef GlyphCollection label
271 271
272 elements = [] 272 elements = []
273 273
274 if use_debug_group: 274 if use_debug_group: