aboutsummaryrefslogtreecommitdiff
path: root/src/crepe/api/Transform.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/crepe/api/Transform.h')
-rw-r--r--src/crepe/api/Transform.h8
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