From 8cf6858a6cd958f31521c4ce680cf2011bfb7cc3 Mon Sep 17 00:00:00 2001 From: hachem Date: Tue, 12 Aug 2025 18:41:26 +0200 Subject: [add]: Camera --- src/Core/Application.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'src/Core/Application.h') 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 #include @@ -42,6 +43,17 @@ namespace Donut std::shared_ptr m_VertexBuffer; std::shared_ptr m_IndexBuffer; std::shared_ptr m_Shader; + + std::unique_ptr 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; }; -- cgit v1.3