Mercurial > touhou
view pytouhou/ui/sdl/sprite.pxd @ 796:d876ac2ccfe1 default tip
Pass audio only once to GameRunner
This prevents it being recreated every stage change, and playing music over the
previous stages’ music.
| author | Link Mauve <linkmauve@linkmauve.fr> |
|---|---|
| date | Sun, 28 Jun 2026 14:27:03 +0200 |
| parents | dacdcca59b66 |
| children |
line wrap: on
line source
from pytouhou.game.sprite cimport Sprite cdef struct RenderingData: int x, y, width, height float left, right, bottom, top unsigned char r, g, b, a long blendfunc float rotation bint flip cdef RenderingData* get_sprite_rendering_data(Sprite sprite) nogil cdef void render_sprite(Sprite sprite) nogil
