aboutsummaryrefslogtreecommitdiff
path: root/src/Core/Application.h
diff options
context:
space:
mode:
authorhachem <im@hachem.wtf>2025-08-21 19:08:34 +0200
committerhachem <im@hachem.wtf>2025-08-21 19:08:34 +0200
commit6f72049359651155be62846e7d080d7a5e871096 (patch)
tree2d07767c82264c0a126708176c9939806c9a7171 /src/Core/Application.h
parent1bd39d11ff76e61bc3cc8b58286092a84997cc20 (diff)
[fix]: proper scene loading
Diffstat (limited to 'src/Core/Application.h')
-rw-r--r--src/Core/Application.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/Core/Application.h b/src/Core/Application.h
index c882bf6..c16b6d9 100644
--- a/src/Core/Application.h
+++ b/src/Core/Application.h
@@ -1,10 +1,12 @@
#pragma once
+#include "StateManager.h"
#include "Memory.h"
#include "Window.h"
#include "Event.h"
#include "Log.h"
-#include "StateManager.h"
+
+#include "Engine/Engine.h"
namespace Donut
{
@@ -18,9 +20,10 @@ namespace Donut
void Run();
void Close();
- Window& GetWindow() { return *m_Window; }
+ Window& GetWindow() { return *m_Window; }
StateManager& GetStateManager() { return *m_StateManager; }
- static Application& Get() { return *s_Instance; }
+ Engine& GetEngine() { return *m_Engine; }
+ static Application& Get() { return *s_Instance; }
private:
void OnInit();
void OnShutdown();
@@ -31,6 +34,7 @@ namespace Donut
private:
Scope<StateManager> m_StateManager;
Scope<Window> m_Window;
+ Scope<Engine> m_Engine;
bool m_Running;
bool m_Minimized;