From c11c0383fc4609dd67012d9e3aa44b7fa58c999c Mon Sep 17 00:00:00 2001 From: nathansmith117 Date: Wed, 21 Feb 2024 11:50:36 -0700 Subject: Better animation and clicky stuff --- src/animation.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/animation.h') 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); -- cgit v1.2.3