diff options
| author | hachem <im@hachem.wtf> | 2025-08-12 18:41:26 +0200 |
|---|---|---|
| committer | hachem <im@hachem.wtf> | 2025-08-12 18:41:26 +0200 |
| commit | 8cf6858a6cd958f31521c4ce680cf2011bfb7cc3 (patch) | |
| tree | 56492ce9db686b719ec16f51b7a7078c41443899 /src/Core/Application.h | |
| parent | a2ec7dabd48a70ea69623406ddd0f8f97af403c8 (diff) | |
[add]: Camera
Diffstat (limited to 'src/Core/Application.h')
| -rw-r--r-- | src/Core/Application.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/Core/Application.h b/src/Core/Application.h index b8c9d49..9e5d31d 100644 --- a/src/Core/Application.h +++ b/src/Core/Application.h @@ -2,6 +2,7 @@ #include "Window.h" #include "Event.h" +#include "Camera.h" #include <memory> #include <functional> @@ -42,6 +43,17 @@ namespace Donut std::shared_ptr<VertexBuffer> m_VertexBuffer; std::shared_ptr<IndexBuffer> m_IndexBuffer; std::shared_ptr<Shader> m_Shader; + + std::unique_ptr<Camera> m_Camera; + + // Input state + bool m_Keys[1024] = { false }; + bool m_FirstMouse = true; + float m_LastX = 0.0f; + float m_LastY = 0.0f; + float m_DeltaTime = 0.0f; + float m_LastFrame = 0.0f; + bool m_MouseDragging = false; static Application* s_Instance; }; |
