comparison pytouhou/ui/sprite.pyx @ 512:b39ad30c6620

Add a pure SDL backend.
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Thu, 05 Dec 2013 01:55:39 +0100
parents bfea9e9a6845
children
comparison
equal deleted inserted replaced
511:2e8ceaa85d5c 512:b39ad30c6620
18 from pytouhou.utils.matrix cimport Matrix 18 from pytouhou.utils.matrix cimport Matrix
19 from pytouhou.ui.renderer cimport Texture #XXX 19 from pytouhou.ui.renderer cimport Texture #XXX
20 20
21 21
22 cpdef object get_sprite_rendering_data(Sprite sprite): 22 cpdef object get_sprite_rendering_data(Sprite sprite):
23 cdef Matrix vertmat
24 cdef double tx, ty, tw, th, sx, sy, rx, ry, rz, tox, toy 23 cdef double tx, ty, tw, th, sx, sy, rx, ry, rz, tox, toy
25 cdef object tmp1, tmp2 24 cdef object tmp1, tmp2
26 25
27 if not sprite.changed: 26 if not sprite.changed:
28 return sprite._rendering_data 27 return sprite._rendering_data