hachem.wtf
aboutsummaryrefslogtreecommitdiff
path: root/src/states/simulation_state.h
diff options
context:
space:
mode:
authorhachem <im@hachem.wtf>2025-08-14 00:42:05 +0200
committerhachem <im@hachem.wtf>2025-08-14 00:42:05 +0200
commit0d8b874c0048ca088bb9e353a5f7c62e1f8cd0e8 (patch)
tree2c0f3b13161489e4e91994882f8f2ed67a20bc0e /src/states/simulation_state.h
parent9671d5e54484b8bce261207d08ff15053ae24e48 (diff)
feat: custom memory managers and fix includes
Diffstat (limited to 'src/states/simulation_state.h')
-rw-r--r--src/states/simulation_state.h17
1 files changed, 9 insertions, 8 deletions
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<Camera> m_camera;
+ Scope<Camera> m_camera;
- std::shared_ptr<VertexArray> m_vertex_array;
- std::shared_ptr<VertexBuffer> m_vertex_buffer;
- std::shared_ptr<IndexBuffer> m_index_buffer;
- std::shared_ptr<Shader> m_shader;
- std::shared_ptr<Texture2D> m_texture;
+ Ref<VertexArray> m_vertex_array;
+ Ref<VertexBuffer> m_vertex_buffer;
+ Ref<IndexBuffer> m_index_buffer;
+ Ref<Shader> m_shader;
+ Ref<Texture2D> m_texture;
- std::shared_ptr<Shader> m_compute_shader;
- std::shared_ptr<Texture2D> m_processed_texture;
+ Ref<Shader> m_compute_shader;
+ Ref<Texture2D> m_processed_texture;
float m_compute_brightness = 0.0f;
float m_compute_contrast = 1.0f;