From e050dce79b67ae6386240567a994454711ab998d Mon Sep 17 00:00:00 2001 From: hachem Date: Thu, 14 Aug 2025 00:42:05 +0200 Subject: [add]: Custom memory managers and fix includes --- src/States/SimulationState.h | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) (limited to 'src/States/SimulationState.h') diff --git a/src/States/SimulationState.h b/src/States/SimulationState.h index d2f0106..aa0b15b 100644 --- a/src/States/SimulationState.h +++ b/src/States/SimulationState.h @@ -1,5 +1,6 @@ #pragma once +#include "Core/Memory.h" #include "Core/State.h" #include "Core/Event.h" #include "Core/Camera.h" @@ -28,16 +29,16 @@ namespace Donut void HandleKeyInput(float deltaTime); void UpdateTexture(); private: - std::unique_ptr m_Camera; + Scope m_Camera; - 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; + Ref m_VertexArray; + Ref m_VertexBuffer; + Ref m_IndexBuffer; + Ref m_Shader; + Ref m_Texture; - std::shared_ptr m_ComputeShader; - std::shared_ptr m_ProcessedTexture; + Ref m_ComputeShader; + Ref m_ProcessedTexture; float m_ComputeBrightness = 0.0f; float m_ComputeContrast = 1.0f; -- cgit v1.3