diff options
author | nathansmith117 <thenathansmithsmith@gmail.com> | 2024-02-16 17:38:55 +0000 |
---|---|---|
committer | nathansmith117 <thenathansmithsmith@gmail.com> | 2024-02-16 17:38:55 +0000 |
commit | 3631e9c1888d2d2e43e85af654fc0544594795f2 (patch) | |
tree | b74484a01b59971c0c60a96ac637ca3113e50e4c /src/animation.h | |
parent | 2a3b0c6057d913d931d5db361b004c89e78d0385 (diff) | |
download | PenguinYippies-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.h | 4 |
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 |