aboutsummaryrefslogtreecommitdiff
path: root/src/crepe/api/UIObject.h
diff options
context:
space:
mode:
authorLoek Le Blansch <loek@pipeframe.xyz>2024-12-20 11:12:51 +0100
committerLoek Le Blansch <loek@pipeframe.xyz>2024-12-20 11:12:51 +0100
commit5c65e3e5662e261311a2a544d00a9eabbf632198 (patch)
tree9e9a71f6d2ab2e4f9e9ccfe101ad5256f9dde33c /src/crepe/api/UIObject.h
parent44741315c6d2df9bd6591c19ea189163e5c70add (diff)
parent31ffbbbab541760b0574c6e6819a99575c1ce8b1 (diff)
Merge branch 'wouter/relative_ui' of github.com:lonkaars/crepe
Diffstat (limited to 'src/crepe/api/UIObject.h')
-rw-r--r--src/crepe/api/UIObject.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/crepe/api/UIObject.h b/src/crepe/api/UIObject.h
index f7f4fba..f1318ab 100644
--- a/src/crepe/api/UIObject.h
+++ b/src/crepe/api/UIObject.h
@@ -20,6 +20,8 @@ public:
vec2 dimensions;
//! Position offset relative to this GameObjects Transform
vec2 offset;
+ //! variable indicating if transform is relative to camera(false) or world(true)
+ bool world_space = false;
};
} // namespace crepe