aboutsummaryrefslogtreecommitdiff
path: root/src/crepe/api/LoopManager.hpp
diff options
context:
space:
mode:
authormax-001 <maxsmits21@kpnmail.nl>2024-11-21 09:06:52 +0100
committermax-001 <maxsmits21@kpnmail.nl>2024-11-21 09:06:52 +0100
commitd3d207b9a2445a9219274466bae2254e1c3db268 (patch)
tree7c37a3d4f32de8ff617e1db42626eb6caa57b36c /src/crepe/api/LoopManager.hpp
parent8b5fd6188862bf9bdfc06a5419c8525d2dfd5f7f (diff)
Added SceneManger to LoopManager
Diffstat (limited to 'src/crepe/api/LoopManager.hpp')
-rw-r--r--src/crepe/api/LoopManager.hpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/crepe/api/LoopManager.hpp b/src/crepe/api/LoopManager.hpp
index 0b14fdb..9cf470b 100644
--- a/src/crepe/api/LoopManager.hpp
+++ b/src/crepe/api/LoopManager.hpp
@@ -11,6 +11,11 @@
namespace crepe {
template <class T>
+void LoopManager::add_scene() {
+ this->scene_manager.add_scene<T>();
+}
+
+template <class T>
T & LoopManager::get_system() {
using namespace std;
static_assert(is_base_of<System, T>::value,