Mercurial > touhou
comparison pytouhou/ui/sdl/sprite.pyx @ 514:3d4410de78e1
Remove some useless optimisations now that cython does them for us.
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> |
---|---|
date | Thu, 05 Dec 2013 20:40:11 +0100 |
parents | b39ad30c6620 |
children | 43ecf0f98f4d |
comparison
equal
deleted
inserted
replaced
513:5e3e0b09a531 | 514:3d4410de78e1 |
---|---|
14 | 14 |
15 | 15 |
16 from libc.math cimport M_PI as pi | 16 from libc.math cimport M_PI as pi |
17 | 17 |
18 | 18 |
19 cpdef object get_sprite_rendering_data(Sprite sprite): | 19 cpdef tuple get_sprite_rendering_data(Sprite sprite): |
20 cdef double x, y, tx, ty, tw, th, sx, sy, rz, tox, toy | 20 cdef double x, y, tx, ty, tw, th, sx, sy, rz, tox, toy |
21 | 21 |
22 if not sprite.changed: | 22 if not sprite.changed: |
23 return sprite._rendering_data | 23 return sprite._rendering_data |
24 | 24 |