From 0d8b874c0048ca088bb9e353a5f7c62e1f8cd0e8 Mon Sep 17 00:00:00 2001 From: hachem Date: Thu, 14 Aug 2025 00:42:05 +0200 Subject: feat: custom memory managers and fix includes --- src/states/simulation_state.h | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) (limited to 'src/states/simulation_state.h') diff --git a/src/states/simulation_state.h b/src/states/simulation_state.h index a0d9e73..051edf3 100644 --- a/src/states/simulation_state.h +++ b/src/states/simulation_state.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 handle_key_input(float delta_time); void update_texture(); private: - std::unique_ptr m_camera; + Scope m_camera; - std::shared_ptr m_vertex_array; - std::shared_ptr m_vertex_buffer; - std::shared_ptr m_index_buffer; - std::shared_ptr m_shader; - std::shared_ptr m_texture; + Ref m_vertex_array; + Ref m_vertex_buffer; + Ref m_index_buffer; + Ref m_shader; + Ref m_texture; - std::shared_ptr m_compute_shader; - std::shared_ptr m_processed_texture; + Ref m_compute_shader; + Ref m_processed_texture; float m_compute_brightness = 0.0f; float m_compute_contrast = 1.0f; -- cgit v1.3