hachem.wtf
aboutsummaryrefslogtreecommitdiff
path: root/src/core/application.cpp
diff options
context:
space:
mode:
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");
}