From 6bc3593f22f9e3bfd1235981ae79c46073003905 Mon Sep 17 00:00:00 2001 From: Nathan Date: Thu, 10 Apr 2025 11:55:44 -0500 Subject: [PATCH] ImguiModule doesn't need a run function --- modules/ImguiModule/src/ImguiModule.cpp | 20 -------------------- modules/ImguiModule/src/ImguiModule.h | 2 -- 2 files changed, 22 deletions(-) diff --git a/modules/ImguiModule/src/ImguiModule.cpp b/modules/ImguiModule/src/ImguiModule.cpp index fa65592..2b8fc6f 100644 --- a/modules/ImguiModule/src/ImguiModule.cpp +++ b/modules/ImguiModule/src/ImguiModule.cpp @@ -61,23 +61,3 @@ void ImguiModule::onLoad() { ImGui_ImplGlfw_NewFrame(); ImGui::NewFrame(); } - -void ImguiModule::run() { - ImGuiIO& io = ImGui::GetIO(); - static float f = 0.0f; - static int counter = 0; - - ImGui::Begin("Hello, world!"); // Create a window called "Hello, world!" and append into it. - - ImGui::Text("This is some useful text."); // Display some text (you can use a format strings too) - - ImGui::SliderFloat("float", &f, 0.0f, 1.0f); // Edit 1 float using a slider from 0.0f to 1.0f - - if (ImGui::Button("Button")) // Buttons return true when clicked (most widgets return true when edited/activated) - counter++; - ImGui::SameLine(); - ImGui::Text("counter = %d", counter); - - ImGui::Text("Application average %.3f ms/frame (%.1f FPS)", 1000.0f / io.Framerate, io.Framerate); - ImGui::End(); -} diff --git a/modules/ImguiModule/src/ImguiModule.h b/modules/ImguiModule/src/ImguiModule.h index 757ba88..cb83efe 100644 --- a/modules/ImguiModule/src/ImguiModule.h +++ b/modules/ImguiModule/src/ImguiModule.h @@ -19,8 +19,6 @@ class ImguiModule : public Archimedes::GuiModule { bool onEvent(const Archimedes::Event& e) { return false; } - void run(); - ImGuiContext* getContext() { return context; } private: