From 613f99e937e55f73dcec1251fdce4a9fda077a0f Mon Sep 17 00:00:00 2001 From: hachem Date: Thu, 14 Aug 2025 01:24:24 +0200 Subject: [add]: implement an ImGUI layer --- src/States/ConfigState.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'src/States/ConfigState.cpp') diff --git a/src/States/ConfigState.cpp b/src/States/ConfigState.cpp index 5d2e0aa..9f57840 100644 --- a/src/States/ConfigState.cpp +++ b/src/States/ConfigState.cpp @@ -1,5 +1,8 @@ #include "ConfigState.h" #include "Rendering/Renderer.h" +#include "Core/Application.h" + +#include namespace Donut { @@ -26,4 +29,13 @@ namespace Donut void ConfigState::OnEvent(Event& event) { } + + void ConfigState::OnImUIRender() + { + ImGui::Begin("Configuration"); + ImGui::Text("Configuration State"); + if (ImGui::Button("Start Simulation")) + Application::Get().GetStateManager().SwitchToState("Simulation"); + ImGui::End(); + } } -- cgit v1.3