aboutsummaryrefslogtreecommitdiff
path: root/src/crepe/api/Sprite.h
diff options
context:
space:
mode:
authorLoek Le Blansch <loek@pipeframe.xyz>2024-12-22 20:04:33 +0100
committerLoek Le Blansch <loek@pipeframe.xyz>2024-12-22 20:04:33 +0100
commita600cc55468a6513743ce916aa3da129270c23f0 (patch)
tree324eb574298b321dcfba69a5a29c59b0cc18f007 /src/crepe/api/Sprite.h
parent73dea702bdedf48a2d2d26e7922b5ee935063cfd (diff)
more WIP zapper
Diffstat (limited to 'src/crepe/api/Sprite.h')
-rw-r--r--src/crepe/api/Sprite.h13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/crepe/api/Sprite.h b/src/crepe/api/Sprite.h
index a3fc319..ef65f64 100644
--- a/src/crepe/api/Sprite.h
+++ b/src/crepe/api/Sprite.h
@@ -110,15 +110,16 @@ private:
*/
float aspect_ratio = 0;
- struct Rect {
- int w = 0;
- int h = 0;
- int x = 0;
- int y = 0;
+public:
+ struct Mask {
+ unsigned w = 0;
+ unsigned h = 0;
+ unsigned x = 0;
+ unsigned 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
- Rect mask;
+ Mask mask;
};
} // namespace crepe