diff options
| author | hachem <im@hachem.wtf> | 2025-08-21 19:08:34 +0200 |
|---|---|---|
| committer | hachem <im@hachem.wtf> | 2025-08-21 19:08:34 +0200 |
| commit | 6f72049359651155be62846e7d080d7a5e871096 (patch) | |
| tree | 2d07767c82264c0a126708176c9939806c9a7171 /src/Core/Application.cpp | |
| parent | 1bd39d11ff76e61bc3cc8b58286092a84997cc20 (diff) | |
[fix]: proper scene loading
Diffstat (limited to 'src/Core/Application.cpp')
| -rw-r--r-- | src/Core/Application.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/Core/Application.cpp b/src/Core/Application.cpp index 62f1faa..eefa482 100644 --- a/src/Core/Application.cpp +++ b/src/Core/Application.cpp @@ -71,6 +71,7 @@ namespace Donut m_Minimized = false; Renderer::OnWindowResize(e.GetWidth(), e.GetHeight()); + m_Engine->SetWindowDimensions(e.GetWidth(), e.GetHeight()); event.Handled = true; return true; }); @@ -118,6 +119,9 @@ namespace Donut Renderer::OnWindowResize(1280, 720); RenderCommand::SetFaceCulling(false); + m_Engine = CreateScope<Engine>(); + m_Engine->SetWindowDimensions(1280, 720); + m_StateManager = CreateScope<StateManager>(); m_StateManager->RegisterState("Config", CreateScope<ConfigState>()); m_StateManager->RegisterState("Simulation", CreateScope<SimulationState>()); |
