aboutsummaryrefslogtreecommitdiffstats
path: root/src/animation.h
diff options
context:
space:
mode:
authornathansmith117 <thenathansmithsmith@gmail.com>2024-02-16 17:38:55 +0000
committernathansmith117 <thenathansmithsmith@gmail.com>2024-02-16 17:38:55 +0000
commit3631e9c1888d2d2e43e85af654fc0544594795f2 (patch)
treeb74484a01b59971c0c60a96ac637ca3113e50e4c /src/animation.h
parent2a3b0c6057d913d931d5db361b004c89e78d0385 (diff)
downloadPenguinYippies-3631e9c1888d2d2e43e85af654fc0544594795f2.tar.gz
PenguinYippies-3631e9c1888d2d2e43e85af654fc0544594795f2.tar.bz2
PenguinYippies-3631e9c1888d2d2e43e85af654fc0544594795f2.zip
Animation play and pause working
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