From 641db1c86bf624527173b0323bd3c832338c3662 Mon Sep 17 00:00:00 2001 From: hachem Date: Thu, 14 Aug 2025 00:02:01 +0200 Subject: [add]: State manager --- src/Core/Application.h | 36 +++++------------------------------- 1 file changed, 5 insertions(+), 31 deletions(-) (limited to 'src/Core/Application.h') diff --git a/src/Core/Application.h b/src/Core/Application.h index 890df0f..92ab781 100644 --- a/src/Core/Application.h +++ b/src/Core/Application.h @@ -5,15 +5,9 @@ #include "Window.h" #include "Event.h" -#include "Camera.h" +#include "StateManager.h" #include "Log.h" -#include "Rendering/VertexArray.h" -#include "Rendering/VertexBuffer.h" -#include "Rendering/IndexBuffer.h" -#include "Rendering/Shader.h" -#include "Rendering/Texture.h" - namespace Donut { class Application @@ -34,35 +28,15 @@ namespace Donut void OnUpdate(); void OnRender(); void OnEvent(Event& event); - void UpdateTexture(); private: + std::unique_ptr m_StateManager; std::unique_ptr m_Window; + bool m_Running; bool m_Minimized; - - std::shared_ptr m_VertexArray; - std::shared_ptr m_VertexBuffer; - std::shared_ptr m_IndexBuffer; - std::shared_ptr m_Shader; - std::shared_ptr m_Texture; - - std::shared_ptr m_ComputeShader; - std::shared_ptr m_ProcessedTexture; - float m_ComputeBrightness; - float m_ComputeContrast; - float m_ComputeSaturation; - bool m_UseComputeShader; - - std::unique_ptr m_Camera; - 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; - float m_TextureTime = 0.0f; + float m_DeltaTime = 0.0f; + float m_LastFrame = 0.0f; static Application* s_Instance; }; -- cgit v1.3