diff options
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; }; |
