aboutsummaryrefslogtreecommitdiff
path: root/src/crepe/api/Animator.h
diff options
context:
space:
mode:
authorheavydemon21 <nielsstunnebrink1@gmail.com>2024-12-11 14:36:44 +0100
committerheavydemon21 <nielsstunnebrink1@gmail.com>2024-12-11 14:36:44 +0100
commit2bcd6ece912ab0a140f9d925718e8787879d1ed7 (patch)
treeea13906ba7afcd519579639b3b2d620628151fe1 /src/crepe/api/Animator.h
parente6a5bb579d0969245f34119ef2489f47039c523e (diff)
adjusted aspect ratio
Diffstat (limited to 'src/crepe/api/Animator.h')
-rw-r--r--src/crepe/api/Animator.h11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/crepe/api/Animator.h b/src/crepe/api/Animator.h
index 9a26bf0..09f0134 100644
--- a/src/crepe/api/Animator.h
+++ b/src/crepe/api/Animator.h
@@ -75,8 +75,9 @@ public:
*
* \param id The unique identifier for the component, typically assigned automatically.
* \param spritesheet the reference to the spritesheet
- * \param max_row maximum of rows inside the given spritesheet
- * \param max_col maximum of columns inside the given spritesheet
+ * \param single_frame_size the width and height in pixels of a single frame inside the
+ * spritesheet
+ * \param max_cell_size the max rows and columns inside the given spritesheet
* \param data extra animation data for more control
*
* This constructor sets up the Animator with the given parameters, and initializes the
@@ -87,15 +88,15 @@ public:
~Animator(); // dbg_trace
public:
- //! The maximum number of rows and columns size
- const uvec2 max_cell_size;
-
Animator::Data data;
private:
//! A reference to the Sprite sheet containing.
Sprite & spritesheet;
+ //! The maximum number of rows and columns size
+ const uvec2 max_cell_size;
+
//! Uses the spritesheet
friend AnimatorSystem;
};