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 | 4de723231b38d7c7e272e71b9580443874c278ab (patch) | |
| tree | c93be963476510b8af30ffb4af7d69d468926fe3 /src/states/config_state.cpp | |
| parent | 0d8b874c0048ca088bb9e353a5f7c62e1f8cd0e8 (diff) | |
feat: implement an ImGui layer
Diffstat (limited to 'src/states/config_state.cpp')
| -rw-r--r-- | src/states/config_state.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
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 <imgui.h> 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(); + } } |
