aboutsummaryrefslogtreecommitdiff
path: root/src/crepe/api/LoopManager.h
diff options
context:
space:
mode:
authorheavydemon21 <nielsstunnebrink1@gmail.com>2024-12-08 14:29:25 +0100
committerheavydemon21 <nielsstunnebrink1@gmail.com>2024-12-08 14:29:25 +0100
commit63bcd54e0e0ea64cfef5950568b4253d5dae5c1e (patch)
tree24f1f251259ca46566a4694b765dc4e99ee264ab /src/crepe/api/LoopManager.h
parent5c3ce63558f2d5dec06a124773f910d783bb22aa (diff)
removed singleton from SDLContext, problem now is cannot call functionalities in the constructor sprite and animator and texture because it can only be filled at rendersystem call
Diffstat (limited to 'src/crepe/api/LoopManager.h')
-rw-r--r--src/crepe/api/LoopManager.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/crepe/api/LoopManager.h b/src/crepe/api/LoopManager.h
index d8910a0..8a30602 100644
--- a/src/crepe/api/LoopManager.h
+++ b/src/crepe/api/LoopManager.h
@@ -8,6 +8,7 @@
#include "../system/System.h"
#include "LoopTimer.h"
+#include "manager/ResourceManager.h"
namespace crepe {
@@ -96,8 +97,10 @@ private:
//! Scene manager instance
SceneManager scene_manager{mediator};
- //! SDL context \todo no more singletons!
- SDLContext & sdl_context = SDLContext::get_instance();
+ SDLContext sdl_context {mediator};
+
+ ResourceManager res_man {mediator};
+
//! Loop timer \todo no more singletons!
LoopTimer & loop_timer = LoopTimer::get_instance();