diff options
author | Loek Le Blansch <loek@pipeframe.xyz> | 2025-01-07 10:37:52 +0100 |
---|---|---|
committer | Loek Le Blansch <loek@pipeframe.xyz> | 2025-01-07 10:37:52 +0100 |
commit | d46548ab15699f7ae91227625302553e79a126bc (patch) | |
tree | e5b05fc99dca66512cf76cce30bf905e2213de8b /src/crepe/api/Animator.h | |
parent | c817f6ff091de9869c803868c50a9ea884ead376 (diff) | |
parent | 77d02bf2e2d5d04e8cacb3c783446541517e8e76 (diff) |
merge master
Diffstat (limited to 'src/crepe/api/Animator.h')
-rw-r--r-- | src/crepe/api/Animator.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/crepe/api/Animator.h b/src/crepe/api/Animator.h index 102894d..95539d3 100644 --- a/src/crepe/api/Animator.h +++ b/src/crepe/api/Animator.h @@ -1,5 +1,6 @@ #pragma once +#include "../manager/LoopTimerManager.h" #include "../types.h" #include "Component.h" @@ -99,6 +100,12 @@ private: //! The maximum number of rows and columns inside the spritesheet const uvec2 grid_size; + // the time elapsed from a frame duration + duration_t elapsed_time = {}; + + // frame counter + unsigned int frame = 0; + //! Uses the spritesheet friend AnimatorSystem; }; |