diff pytouhou/ui/gamerenderer.pxd @ 468:feecdb4a8928

Add “except *” to cdef void functions, and type some more.
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Thu, 12 Sep 2013 15:47:08 +0200
parents 36bc577b2392
children c622eaf64428
line wrap: on
line diff
--- a/pytouhou/ui/gamerenderer.pxd
+++ b/pytouhou/ui/gamerenderer.pxd
@@ -1,7 +1,9 @@
 from pytouhou.utils.matrix cimport Matrix
+from pytouhou.game.game cimport Game
 from .background cimport BackgroundRenderer
 from .renderer cimport Renderer, Framebuffer
 from .shader cimport Shader
+from .window cimport Window
 
 cdef class GameRenderer(Renderer):
     cdef Matrix game_mvp, interface_mvp, proj
@@ -9,9 +11,9 @@ cdef class GameRenderer(Renderer):
     cdef Framebuffer framebuffer
     cdef BackgroundRenderer background_renderer
 
-    cdef void load_background(self, background)
-    cdef void start(self, game)
-    cdef void render(self, game, window)
-    cdef void render_game(self, game)
-    cdef void render_text(self, texts)
-    cdef void render_interface(self, interface, game_boss)
+    cdef void load_background(self, background) except *
+    cdef void start(self, Game game) except *
+    cdef void render(self, Game game, Window window) except *
+    cdef void render_game(self, Game game) except *
+    cdef void render_text(self, texts) except *
+    cdef void render_interface(self, interface, game_boss) except *