diff options
| author | hachem <im@hachem.wtf> | 2025-08-14 01:24:24 +0200 |
|---|---|---|
| committer | hachem <im@hachem.wtf> | 2025-08-14 01:24:24 +0200 |
| commit | 613f99e937e55f73dcec1251fdce4a9fda077a0f (patch) | |
| tree | b86ed54045783b47a0f856476a6465d3777b7005 /src/States/ConfigState.cpp | |
| parent | e050dce79b67ae6386240567a994454711ab998d (diff) | |
[add]: implement an ImGUI layer
Diffstat (limited to 'src/States/ConfigState.cpp')
| -rw-r--r-- | src/States/ConfigState.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
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 <imgui.h> 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(); + } } |
