Added a way to replace the internal state pointer so that we can optionally share it between modules (e.g. multiple DLLs)

This commit is contained in:
Jim Tilander
2015-01-31 20:28:24 -08:00
parent 98e71afa72
commit 8149bace7b
2 changed files with 133 additions and 119 deletions

View File

@ -143,6 +143,8 @@ public:
namespace ImGui
{
// Main
IMGUI_API void* GetInternalState();
IMGUI_API void SetInternalState(void* state);
IMGUI_API ImGuiIO& GetIO();
IMGUI_API ImGuiStyle& GetStyle();
IMGUI_API void NewFrame();