diff options
author | nathansmith117 <thenathansmithsmith@gmail.com> | 2024-02-21 18:50:36 +0000 |
---|---|---|
committer | nathansmith117 <thenathansmithsmith@gmail.com> | 2024-02-21 18:50:36 +0000 |
commit | c11c0383fc4609dd67012d9e3aa44b7fa58c999c (patch) | |
tree | 6152ba5d513b98b617d85b01d44068b8abf1d1ab /src/animation.h | |
parent | 2416dc256e53c431c5226827d90cf504f190f9ec (diff) | |
download | PenguinYippies-c11c0383fc4609dd67012d9e3aa44b7fa58c999c.tar.gz PenguinYippies-c11c0383fc4609dd67012d9e3aa44b7fa58c999c.tar.bz2 PenguinYippies-c11c0383fc4609dd67012d9e3aa44b7fa58c999c.zip |
Better animation and clicky stuff
Diffstat (limited to 'src/animation.h')
-rw-r--r-- | src/animation.h | 4 |
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); |