comparison pytouhou/game/sprite.pxd @ 622:98603f2c32b4

Reduce the precision of Sprite’s variables.
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Wed, 08 Apr 2015 15:05:34 +0200
parents 725bd24235a2
children df3c4ef5f2cc
comparison
equal deleted inserted replaced
621:398860bc3b7b 622:98603f2c32b4
1 from pytouhou.utils.interpolator cimport Interpolator 1 from pytouhou.utils.interpolator cimport Interpolator
2 from pytouhou.formats.animation cimport Animation 2 from pytouhou.formats.animation cimport Animation
3 3
4 cdef class Sprite: 4 cdef public class Sprite[object Sprite, type SpriteType]:
5 cdef public long blendfunc, frame 5 cdef public int blendfunc, frame
6 cdef public double width_override, height_override, angle 6 cdef public float 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
13 cdef public Animation 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 float _texcoords[4]
19 cdef double _texoffsets[2] 19 cdef float _texoffsets[2]
20 cdef double _rescale[2] 20 cdef float _rescale[2]
21 cdef double _scale_speed[2] 21 cdef float _scale_speed[2]
22 cdef double _rotations_3d[3] 22 cdef float _rotations_3d[3]
23 cdef double _rotations_speed_3d[3] 23 cdef float _rotations_speed_3d[3]
24 cdef unsigned char _color[4] 24 cdef unsigned char _color[4]
25 25
26 cpdef fade(self, unsigned long duration, alpha, formula=*) 26 cpdef fade(self, unsigned int duration, alpha, formula=*)
27 cpdef scale_in(self, unsigned long duration, sx, sy, formula=*) 27 cpdef scale_in(self, unsigned int duration, sx, sy, formula=*)
28 cpdef move_in(self, unsigned long duration, x, y, z, formula=*) 28 cpdef move_in(self, unsigned int duration, x, y, z, formula=*)
29 cpdef rotate_in(self, unsigned long duration, rx, ry, rz, formula=*) 29 cpdef rotate_in(self, unsigned int duration, rx, ry, rz, formula=*)
30 cpdef change_color_in(self, unsigned long duration, r, g, b, formula=*) 30 cpdef change_color_in(self, unsigned int duration, r, g, b, formula=*)
31 cpdef update_orientation(self, double angle_base=*, bint force_rotation=*) 31 cpdef update_orientation(self, double angle_base=*, bint force_rotation=*)
32 cpdef Sprite copy(self) 32 cpdef Sprite copy(self)
33 cpdef update(self) 33 cpdef update(self)