mirror of
https://github.com/Drezil/imgui.git
synced 2025-07-13 00:09:55 +02:00
Enabled us to create the internal state on client side allocated memory, e.g. a heap
This commit is contained in:
10
imgui.cpp
10
imgui.cpp
@ -1609,8 +1609,16 @@ void* ImGui::GetInternalState()
|
||||
return GImGui;
|
||||
}
|
||||
|
||||
void ImGui::SetInternalState(void* state)
|
||||
unsigned ImGui::GetInternalStateSize()
|
||||
{
|
||||
return sizeof(ImGuiState);
|
||||
}
|
||||
|
||||
void ImGui::SetInternalState(void* state, bool construct)
|
||||
{
|
||||
if( construct )
|
||||
new (state) ImGuiState;
|
||||
|
||||
GImGui = (ImGuiState*)state;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user