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, 4 insertions, 0 deletions
diff --git a/src/animation.h b/src/animation.h
index 6a632eb..693383b 100644
--- a/src/animation.h
+++ b/src/animation.h
@@ -28,6 +28,8 @@ typedef struct Animation {
// Timing the frames.
double delay;
double lastTime;
+
+ bool playing;
} Animation;
AnimationAsset loadAnimationAssetFromFile(const char* fileName);
@@ -40,6 +42,8 @@ void closeAnimation(Animation* animation);
void setAnimationFrame(Animation* animation, int frame);
void runAnimation(Animation* animation);
+void playAnimation(Animation* animation);
void pauseAnimation(Animation* animation);
+void toggleAnimation(Animation* animation);
#endif