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/config_state.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'src/states/config_state.cpp') diff --git a/src/states/config_state.cpp b/src/states/config_state.cpp index 8ea33ca..9d0e626 100644 --- a/src/states/config_state.cpp +++ b/src/states/config_state.cpp @@ -1,5 +1,8 @@ #include "config_state.h" #include "rendering/renderer.h" +#include "core/application.h" + +#include namespace Donut { @@ -26,4 +29,13 @@ namespace Donut void ConfigState::on_event(Event& event) { } + + void ConfigState::on_im_ui_render() + { + ImGui::Begin("Configuration"); + ImGui::Text("Configuration State"); + if (ImGui::Button("Start Simulation")) + Application::get().get_state_manager().switch_to_state("Simulation"); + ImGui::End(); + } } -- cgit v1.3