diff options
author | max-001 <maxsmits21@kpnmail.nl> | 2024-11-06 10:24:51 +0100 |
---|---|---|
committer | max-001 <maxsmits21@kpnmail.nl> | 2024-11-06 10:24:51 +0100 |
commit | c40c89f0c1f72e67b4036792b4b2a9b28eb73e9a (patch) | |
tree | f22bf302ad84219d43291659c35e52aa3c4e15e3 /src | |
parent | cd7f08320990f1a37e2d012b7e3ae3761c5a7267 (diff) |
Improved test
Diffstat (limited to 'src')
-rw-r--r-- | src/example/scene_manager.cpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/example/scene_manager.cpp b/src/example/scene_manager.cpp index 9d832eb..2fcdbec 100644 --- a/src/example/scene_manager.cpp +++ b/src/example/scene_manager.cpp @@ -39,9 +39,8 @@ int main() { scene_mgr.add_scene<concreteScene1>("scene1"); scene_mgr.add_scene<concreteScene2>("scene2"); - // Load scene1 to the queue - scene_mgr.set_next_scene("scene1"); - // Empty the queue (now scene1 is loaded) + // There is no need to call set_next_scene() at the beginnen, because the first scene will be automatically set as the next scene + // Load scene1 (the first scene added) scene_mgr.load_next_scene(); // Get the Metadata components of each GameObject of Scene1 @@ -56,9 +55,9 @@ int main() { << " Tag: " << m.get().tag << endl; } - // Load scene2 to the queue + // Set scene2 as the next scene scene_mgr.set_next_scene("scene2"); - // Empty the queue (now scene2 is loaded) + // Load scene2 scene_mgr.load_next_scene(); // Get the Metadata components of each GameObject of Scene2 |