19 #ifndef SIMPLE_ANIMATOR_H
20 #define SIMPLE_ANIMATOR_H
22 #include <SDL2/SDL_timer.h>
26 typedef std::pair<double, double > AniPos;
33 SimpleAnimator(
bool enables,
int framesq=1,
int fspeed=64,
int First=0,
int Last=-1,
34 bool rev=
false,
bool bid=
false);
41 void construct(
bool enables=
false,
int framesq=1,
int fspeed=64,
int First=0,
int Last=-1,
42 bool rev=
false,
bool bid=
false);
44 void setFrameSequance(QList<int> sequance);
46 AniPos image(
double frame=-1);
49 void setFrames(
int first,
int last);
56 static unsigned int TickAnimation(
unsigned int x,
void *p);
58 void setOnceMode(
bool once,
int loops=1);
59 void manualTick(
float ticks);
70 bool animationFinished;
72 bool frame_sequance_enabled;
73 QList<int> frame_sequance;
74 int frame_sequance_cur;
93 #endif // SIMPLE_ANIMATOR_H
Definition: simple_animator.h:28