diff options
author | WBoerenkamps <wrj.boerenkamps@student.avans.nl> | 2024-12-07 20:39:19 +0100 |
---|---|---|
committer | WBoerenkamps <wrj.boerenkamps@student.avans.nl> | 2024-12-07 20:39:19 +0100 |
commit | 666292e33d6997a61d9eaff31e8180a602656474 (patch) | |
tree | dfe0f1cca9b3f8cecf0467fc598598caa32027af /src/crepe/api/Transform.h | |
parent | fdb4c99e139a264d4e15e6913a3756fc6cccb2f2 (diff) |
save
Diffstat (limited to 'src/crepe/api/Transform.h')
-rw-r--r-- | src/crepe/api/Transform.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/crepe/api/Transform.h b/src/crepe/api/Transform.h index 7ee6d65..78407ee 100644 --- a/src/crepe/api/Transform.h +++ b/src/crepe/api/Transform.h @@ -13,6 +13,14 @@ namespace crepe { */ class Transform : public Component { public: + //! Specifies the coordinate space for transformations. + enum Space { + //! coordinates are relative to the active camera + HUD, + //! coordinates are relative to the game world + WORLD, + }; + Space coordinate_space = Space::WORLD; //! Translation (shift) vec2 position = {0, 0}; //! Rotation, in degrees clockwise |