From 4de723231b38d7c7e272e71b9580443874c278ab Mon Sep 17 00:00:00 2001 From: hachem Date: Thu, 14 Aug 2025 01:24:24 +0200 Subject: feat: implement an ImGui layer --- src/states/simulation_state.h | 37 +------------------------------------ 1 file changed, 1 insertion(+), 36 deletions(-) (limited to 'src/states/simulation_state.h') diff --git a/src/states/simulation_state.h b/src/states/simulation_state.h index 051edf3..4bb1c1b 100644 --- a/src/states/simulation_state.h +++ b/src/states/simulation_state.h @@ -1,17 +1,9 @@ #pragma once -#include "core/memory.h" #include "core/state.h" #include "core/event.h" -#include "core/camera.h" #include "core/log.h" -#include "rendering/vertex_array.h" -#include "rendering/vertex_buffer.h" -#include "rendering/index_buffer.h" -#include "rendering/shader.h" -#include "rendering/texture.h" - namespace Donut { class SimulationState @@ -24,34 +16,7 @@ namespace Donut void on_exit() override; void on_update(float delta_time) override; void on_render() override; + void on_im_ui_render() override; void on_event(Event& event) override; - private: - void handle_key_input(float delta_time); - void update_texture(); - private: - Scope m_camera; - - Ref m_vertex_array; - Ref m_vertex_buffer; - Ref m_index_buffer; - Ref m_shader; - Ref m_texture; - - Ref m_compute_shader; - Ref m_processed_texture; - - float m_compute_brightness = 0.0f; - float m_compute_contrast = 1.0f; - float m_compute_saturation = 1.0f; - bool m_use_compute_shader = true; - - 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; - float m_texture_time = 0.0f; }; }; -- cgit v1.3