view pytouhou/ui/opengl/sprite.pxd @ 538:1abb6f7db8cc

Don’t retrieve the keyboard_state pointer at each frame.
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Thu, 24 Apr 2014 20:01:42 +0200
parents dacdcca59b66
children 53fa73932e9a
line wrap: on
line source

from pytouhou.game.sprite cimport Sprite

cdef struct RenderingData:
    float pos[12], left, right, bottom, top
    unsigned char color[4]
    long key

cdef RenderingData* get_sprite_rendering_data(Sprite sprite) nogil
cdef void render_sprite(Sprite sprite) nogil