From 7e06a916e6a385c37075abcb83d14b8c1fef7bc0 Mon Sep 17 00:00:00 2001 From: hachem Date: Tue, 12 Aug 2025 18:41:26 +0200 Subject: feat: camera --- src/core/application.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src/core/application.h') diff --git a/src/core/application.h b/src/core/application.h index a860e1c..f78f107 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,16 @@ namespace Donut std::shared_ptr m_vertex_buffer; std::shared_ptr m_index_buffer; std::shared_ptr m_shader; + + std::unique_ptr m_camera; + + bool m_keys[1024] = { false }; + bool m_first_mouse = true; + float m_last_x = 0.0f; + float m_last_y = 0.0f; + float m_delta_time = 0.0f; + float m_last_frame = 0.0f; + bool m_mouse_dragging = false; static Application* s_instance; }; -- cgit v1.3