hachem.wtf
aboutsummaryrefslogtreecommitdiff
path: root/src/core/application.cpp
diff options
context:
space:
mode:
authorhachem <im@hachem.wtf>2025-08-14 00:42:05 +0200
committerhachem <im@hachem.wtf>2025-08-14 00:42:05 +0200
commit0d8b874c0048ca088bb9e353a5f7c62e1f8cd0e8 (patch)
tree2c0f3b13161489e4e91994882f8f2ed67a20bc0e /src/core/application.cpp
parent9671d5e54484b8bce261207d08ff15053ae24e48 (diff)
feat: custom memory managers and fix includes
Diffstat (limited to 'src/core/application.cpp')
-rw-r--r--src/core/application.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/core/application.cpp b/src/core/application.cpp
index b05e2b5..f2284cd 100644
--- a/src/core/application.cpp
+++ b/src/core/application.cpp
@@ -16,7 +16,7 @@ namespace Donut
{
s_instance = this;
- m_window = std::make_unique<Window>(name, width, height);
+ m_window = create_scope<Window>(name, width, height);
m_window->set_event_callback([this](Event& event)
{
on_event(event);
@@ -109,9 +109,9 @@ namespace Donut
Renderer::on_window_resize(1280, 720);
RenderCommand::set_face_culling(false);
- m_state_manager = std::make_unique<StateManager>();
- m_state_manager->register_state("Config", std::make_unique<ConfigState>());
- m_state_manager->register_state("Simulation", std::make_unique<SimulationState>());
+ m_state_manager = create_scope<StateManager>();
+ m_state_manager->register_state("Config", create_scope<ConfigState>());
+ m_state_manager->register_state("Simulation", create_scope<SimulationState>());
m_state_manager->switch_to_state("Config");
}