This commit is contained in:
2025-04-09 22:07:41 -05:00
parent 6db62591c4
commit e3bc75dea8
3 changed files with 17 additions and 4 deletions

View File

@@ -1,6 +1,5 @@
#include "ImguiModule.h"
#include "imgui.h"
#include "backends/imgui_impl_glfw.h"
#include "backends/imgui_impl_opengl3.h"
@@ -27,7 +26,7 @@ void ImguiModule::onLoad() {
}
IMGUI_CHECKVERSION();
ImGui::CreateContext();
context = ImGui::CreateContext();
ImGuiIO& io = ImGui::GetIO(); (void)io;
io.ConfigFlags |= ImGuiConfigFlags_NavEnableKeyboard; // Enable Keyboard Controls
io.ConfigFlags |= ImGuiConfigFlags_NavEnableGamepad; // Enable Gamepad Controls

View File

@@ -6,6 +6,8 @@
#include "utils/Window/Window.h"
#include "imgui.h"
class ImguiModule : public Archimedes::GuiModule {
public:
@@ -19,9 +21,11 @@ class ImguiModule : public Archimedes::GuiModule {
void run();
ImGuiContext* getContext() { return context; }
private:
ImGuiContext* context;
};
#ifdef IMGUIMODULE_DYNAMIC