struct
#include <engine/imgui/context.hpp>
ImGuiContextHolder Resource which stores a pointer to the ImGui context created by the ImGui plugin.
This resource is inserted by the ImGui integration during imguiInitTag.
When linking dynamically the engine library from an application or another library, although this plugin initializes the context, it might not be set automatically on the client side - particularly, this happens on Windows, as global variables are not shared between DLLs and applications.
So, if you're using ImGui in your application or library, to ensure dynamic linking capability in all platforms, you should call ImGui::SetCurrentContext(ImGuiContextHolder::context)
before using any ImGui functions.
This resource is not named ImGuiContext because ImGui already has a type with that name.
Public variables
- ImGuiContext* context
- Pointer to the ImGui context.