diff options
author | Loek Le Blansch <loek@pipeframe.xyz> | 2024-11-24 19:00:28 +0100 |
---|---|---|
committer | Loek Le Blansch <loek@pipeframe.xyz> | 2024-11-24 19:00:28 +0100 |
commit | fa283385d43030eca4833c1992da99e472bb5a0a (patch) | |
tree | 105e8427f75fa138ccf1f2b8990d0dab4d9cb0bb /src/doc | |
parent | 0da788561f51215262a4c563853d2845ba1d3876 (diff) | |
parent | 1a56d7dcbf0c7375c2f0b1bb2dcd2b108a489fa8 (diff) |
Merge branch 'max/scenes' of github.com:lonkaars/crepe
Diffstat (limited to 'src/doc')
-rw-r--r-- | src/doc/feature/scene.dox | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/doc/feature/scene.dox b/src/doc/feature/scene.dox index eedc69a..bac1c87 100644 --- a/src/doc/feature/scene.dox +++ b/src/doc/feature/scene.dox @@ -36,16 +36,14 @@ concrete scene to be added. #include <crepe/api/LoopManager.h> #include <crepe/api/GameObject.h> #include <crepe/api/Scene.h> -#include <crepe/api/Vector2.h> +#include <crepe/util/types.h> using namespace crepe; class MyScene : public Scene { public: - using Scene::Scene; - void load_scene() { - auto & mgr = this->component_manager; + ComponentManager & mgr = this->component_manager; GameObject object1 = mgr.new_object("object1", "tag_my_scene", vec2{0, 0}, 0, 1); GameObject object2 = mgr.new_object("object2", "tag_my_scene", vec2{1, 0}, 0, 1); } |