Mercurial > touhou
comparison pytouhou/game/sprite.pxd @ 608:725bd24235a2
Make ANM0 pure-python again, by moving the Cython-dependent ANM class into its own module.
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> |
---|---|
date | Wed, 26 Nov 2014 14:00:17 +0100 |
parents | dacdcca59b66 |
children | 98603f2c32b4 |
comparison
equal
deleted
inserted
replaced
607:9dbc234ea087 | 608:725bd24235a2 |
---|---|
1 from pytouhou.utils.interpolator cimport Interpolator | 1 from pytouhou.utils.interpolator cimport Interpolator |
2 from pytouhou.formats.anm0 cimport ANM | 2 from pytouhou.formats.animation cimport Animation |
3 | 3 |
4 cdef class Sprite: | 4 cdef class Sprite: |
5 cdef public long blendfunc, frame | 5 cdef public long blendfunc, frame |
6 cdef public double width_override, height_override, angle | 6 cdef public double width_override, height_override, angle |
7 cdef public bint removed, changed, visible, force_rotation | 7 cdef public bint removed, changed, visible, force_rotation |
8 cdef public bint automatic_orientation, allow_dest_offset, mirrored | 8 cdef public bint automatic_orientation, allow_dest_offset, mirrored |
9 cdef public bint corner_relative_placement | 9 cdef public bint corner_relative_placement |
10 cdef public Interpolator scale_interpolator, fade_interpolator | 10 cdef public Interpolator scale_interpolator, fade_interpolator |
11 cdef public Interpolator offset_interpolator, rotation_interpolator | 11 cdef public Interpolator offset_interpolator, rotation_interpolator |
12 cdef public Interpolator color_interpolator | 12 cdef public Interpolator color_interpolator |
13 cdef public ANM anm | 13 cdef public Animation anm |
14 | 14 |
15 cdef void *_rendering_data | 15 cdef void *_rendering_data |
16 | 16 |
17 cdef float _dest_offset[3] | 17 cdef float _dest_offset[3] |
18 cdef double _texcoords[4] | 18 cdef double _texcoords[4] |