mirror of
https://github.com/ocornut/imgui.git
synced 2026-01-11 00:04:24 +00:00
Backends: Win32: rework to add ImGui_ImplWin32_WndProcHandlerEx() not using current context (experimental). (#8069, #6293, #5856, #586)
+ GetIOEx(). Amendfedf45c+ cba656a. Amend416cfdb9.
This commit is contained in:
parent
d67e2eea1a
commit
3b8c7d0326
4 changed files with 59 additions and 45 deletions
|
|
@ -4748,6 +4748,13 @@ ImGuiIO& ImGui::GetIO()
|
|||
return GImGui->IO;
|
||||
}
|
||||
|
||||
// This variant exists to facilitate backends experimenting with multi-threaded parallel context. (#8069, #6293, #5856)
|
||||
ImGuiIO& ImGui::GetIOEx(ImGuiContext* ctx)
|
||||
{
|
||||
IM_ASSERT(ctx != NULL);
|
||||
return ctx->IO;
|
||||
}
|
||||
|
||||
ImGuiPlatformIO& ImGui::GetPlatformIO()
|
||||
{
|
||||
IM_ASSERT(GImGui != NULL && "No current context. Did you call ImGui::CreateContext() and ImGui::SetCurrentContext()?");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue