diff options
author | Loek Le Blansch <loek@pipeframe.xyz> | 2025-01-06 10:26:03 +0100 |
---|---|---|
committer | Loek Le Blansch <loek@pipeframe.xyz> | 2025-01-06 10:26:03 +0100 |
commit | d4f443070017c5c2e6a938bf4d0a86b70ae6beaa (patch) | |
tree | f3a6f399981d69e66916544e34066af6bce3fd93 /src/crepe/api/Sprite.h | |
parent | ec69f40540317215d0f30e1f8e43d0e18450f8cc (diff) |
revert Animator
Diffstat (limited to 'src/crepe/api/Sprite.h')
-rw-r--r-- | src/crepe/api/Sprite.h | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/src/crepe/api/Sprite.h b/src/crepe/api/Sprite.h index ef65f64..a3fc319 100644 --- a/src/crepe/api/Sprite.h +++ b/src/crepe/api/Sprite.h @@ -110,16 +110,15 @@ private: */ float aspect_ratio = 0; -public: - struct Mask { - unsigned w = 0; - unsigned h = 0; - unsigned x = 0; - unsigned y = 0; + struct Rect { + int w = 0; + int h = 0; + int x = 0; + int y = 0; }; //! Render area of the sprite this will also be adjusted by the AnimatorSystem if an Animator // object is present in GameObject. this is in sprite pixels - Mask mask; + Rect mask; }; } // namespace crepe |