ImguiModule doesn't need a run function

This commit is contained in:
2025-04-10 11:55:44 -05:00
parent e3bc75dea8
commit 6bc3593f22
2 changed files with 0 additions and 22 deletions

View File

@@ -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();
}