aboutsummaryrefslogtreecommitdiff
path: root/src/example/rendering.cpp
diff options
context:
space:
mode:
authorLoek Le Blansch <loek@pipeframe.xyz>2024-11-13 18:46:06 +0100
committerLoek Le Blansch <loek@pipeframe.xyz>2024-11-13 18:46:06 +0100
commit0aa97807cb9b7f1d1850449dd5a5e45b961445ce (patch)
tree8f6a808669a39f5b8d91079ecb30c3d1f11e9e02 /src/example/rendering.cpp
parentbc2a31190b5afe7754b04e9c61fcda30e577d7d8 (diff)
fix scene_manager example
Diffstat (limited to 'src/example/rendering.cpp')
-rw-r--r--src/example/rendering.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/example/rendering.cpp b/src/example/rendering.cpp
index 74c00e2..abd11b1 100644
--- a/src/example/rendering.cpp
+++ b/src/example/rendering.cpp
@@ -23,9 +23,9 @@ int main() {
ComponentManager mgr{};
RenderSystem sys{mgr};
- auto & obj = mgr.new_object("name", "tag", Vector2{0, 0}, 1, 1);
- auto & obj1 = mgr.new_object("name", "tag", Vector2{500, 0}, 1, 0.1);
- auto & obj2 = mgr.new_object("name", "tag", Vector2{800, 0}, 1, 0.1);
+ GameObject obj = mgr.new_object("name", "tag", Vector2{0, 0}, 1, 1);
+ GameObject obj1 = mgr.new_object("name", "tag", Vector2{500, 0}, 1, 0.1);
+ GameObject obj2 = mgr.new_object("name", "tag", Vector2{800, 0}, 1, 0.1);
// Normal adding components
{