hachem.wtf
aboutsummaryrefslogtreecommitdiff
path: root/src/states/config_state.cpp
diff options
context:
space:
mode:
authorhachem <im@hachem.wtf>2025-08-14 01:24:24 +0200
committerhachem <im@hachem.wtf>2025-08-14 01:24:24 +0200
commit4de723231b38d7c7e272e71b9580443874c278ab (patch)
treec93be963476510b8af30ffb4af7d69d468926fe3 /src/states/config_state.cpp
parent0d8b874c0048ca088bb9e353a5f7c62e1f8cd0e8 (diff)
feat: implement an ImGui layer
Diffstat (limited to 'src/states/config_state.cpp')
-rw-r--r--src/states/config_state.cpp12
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();
+ }
}