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
commite050dce79b67ae6386240567a994454711ab998d (patch)
tree4b5f55471d86b8ee80d531696e65dcea3b713e7a /src/Core/Application.cpp
parent2e246683df3b18e8e129adb0ada25be5f82f5b59 (diff)
[add]: 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 4a0726d..a886327 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 = CreateScope<Window>(name, width, height);
m_Window->SetEventCallback([this](Event& event)
{
OnEvent(event);
@@ -109,9 +109,9 @@ namespace Donut
Renderer::OnWindowResize(1280, 720);
RenderCommand::SetFaceCulling(false);
- m_StateManager = std::make_unique<StateManager>();
- m_StateManager->RegisterState("Config", std::make_unique<ConfigState>());
- m_StateManager->RegisterState("Simulation", std::make_unique<SimulationState>());
+ m_StateManager = CreateScope<StateManager>();
+ m_StateManager->RegisterState("Config", CreateScope<ConfigState>());
+ m_StateManager->RegisterState("Simulation", CreateScope<SimulationState>());
m_StateManager->SwitchToState("Config");
}