view pytouhou/ui/opengl/gamerenderer.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 1b31169dc344
children
line wrap: on
line source

from pytouhou.utils.matrix cimport Matrix
from pytouhou.game.game cimport Game
from .background cimport BackgroundRenderer
from .renderer cimport Renderer
from .framebuffer cimport Framebuffer
from .shader cimport Shader

cdef class GameRenderer(Renderer):
    cdef Matrix *game_mvp
    cdef Matrix *interface_mvp
    cdef Matrix *proj
    cdef Shader game_shader, background_shader, interface_shader
    cdef Framebuffer framebuffer
    cdef BackgroundRenderer background_renderer
    cdef object background

    cdef bint render_game(self, Game game) except True
    cdef bint render_text(self, dict texts) except True
    cdef bint render_interface(self, interface, game_boss) except True