context
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user