comparison pytouhou/ui/gamerenderer.pxd @ 503:c622eaf64428

Optimize GameRunner some more, fix replay, and remove Window dependency in Renderer.
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Fri, 04 Oct 2013 14:27:11 +0200
parents feecdb4a8928
children 2e8ceaa85d5c
comparison
equal deleted inserted replaced
502:3d3285918ba1 503:c622eaf64428
1 from pytouhou.utils.matrix cimport Matrix 1 from pytouhou.utils.matrix cimport Matrix
2 from pytouhou.game.game cimport Game 2 from pytouhou.game.game cimport Game
3 from .background cimport BackgroundRenderer 3 from .background cimport BackgroundRenderer
4 from .renderer cimport Renderer, Framebuffer 4 from .renderer cimport Renderer, Framebuffer
5 from .shader cimport Shader 5 from .shader cimport Shader
6 from .window cimport Window
7 6
8 cdef class GameRenderer(Renderer): 7 cdef class GameRenderer(Renderer):
9 cdef Matrix game_mvp, interface_mvp, proj 8 cdef Matrix game_mvp, interface_mvp, proj
10 cdef Shader game_shader, background_shader, interface_shader, passthrough_shader 9 cdef Shader game_shader, background_shader, interface_shader, passthrough_shader
11 cdef Framebuffer framebuffer 10 cdef Framebuffer framebuffer
12 cdef BackgroundRenderer background_renderer 11 cdef BackgroundRenderer background_renderer
13 12
14 cdef void load_background(self, background) except * 13 cdef void load_background(self, background) except *
15 cdef void start(self, Game game) except * 14 cdef void start(self, common) except *
16 cdef void render(self, Game game, Window window) except * 15 cdef void render(self, Game game) except *
17 cdef void render_game(self, Game game) except * 16 cdef void render_game(self, Game game) except *
18 cdef void render_text(self, texts) except * 17 cdef void render_text(self, texts) except *
19 cdef void render_interface(self, interface, game_boss) except * 18 cdef void render_interface(self, interface, game_boss) except *