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 | 7e06a916e6a385c37075abcb83d14b8c1fef7bc0 (patch) | |
| tree | 8054d96e89d43b0f98b75af726079d723a70ca2a /src/core/application.h | |
| parent | 50cdd344a3ed87c75a67739e2ffd34762e9b0895 (diff) | |
feat: camera
Diffstat (limited to 'src/core/application.h')
| -rw-r--r-- | src/core/application.h | 11 |
1 files changed, 11 insertions, 0 deletions
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 <memory> #include <functional> @@ -42,6 +43,16 @@ namespace Donut std::shared_ptr<VertexBuffer> m_vertex_buffer; std::shared_ptr<IndexBuffer> m_index_buffer; std::shared_ptr<Shader> m_shader; + + std::unique_ptr<Camera> 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; }; |
