aboutsummaryrefslogtreecommitdiffstats
path: root/src/animation.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/animation.h')
-rw-r--r--src/animation.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/animation.h b/src/animation.h
index 693383b..241ca44 100644
--- a/src/animation.h
+++ b/src/animation.h
@@ -25,7 +25,8 @@ typedef struct Animation {
int width;
int height;
- // Timing the frames.
+ // Timing the frames and other stuff.
+ bool repeat;
double delay;
double lastTime;
@@ -42,6 +43,7 @@ void closeAnimation(Animation* animation);
void setAnimationFrame(Animation* animation, int frame);
void runAnimation(Animation* animation);
+void replayAnimation(Animation* animation);
void playAnimation(Animation* animation);
void pauseAnimation(Animation* animation);
void toggleAnimation(Animation* animation);