File tree Expand file tree Collapse file tree 2 files changed +10
-2
lines changed
Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -4814,7 +4814,7 @@ ImGuiIO& ImGui::GetIO()
48144814}
48154815
48164816// This variant exists to facilitate backends experimenting with multi-threaded parallel context. (#8069, #6293, #5856)
4817- ImGuiIO& ImGui::GetIOEx (ImGuiContext* ctx)
4817+ ImGuiIO& ImGui::GetIO (ImGuiContext* ctx)
48184818{
48194819 IM_ASSERT(ctx != NULL);
48204820 return ctx->IO;
@@ -4826,6 +4826,13 @@ ImGuiPlatformIO& ImGui::GetPlatformIO()
48264826 return GImGui->PlatformIO;
48274827}
48284828
4829+ // This variant exists to facilitate backends experimenting with multi-threaded parallel context. (#8069, #6293, #5856)
4830+ ImGuiPlatformIO& ImGui::GetPlatformIO(ImGuiContext* ctx)
4831+ {
4832+ IM_ASSERT(ctx != NULL;
4833+ return ctx->PlatformIO;
4834+ }
4835+
48294836// Pass this to your backend rendering function! Valid after Render() and until the next call to NewFrame()
48304837ImDrawData* ImGui::GetDrawData()
48314838{
Original file line number Diff line number Diff line change @@ -2980,7 +2980,8 @@ namespace ImGui
29802980 // If this ever crashes because g.CurrentWindow is NULL, it means that either:
29812981 // - ImGui::NewFrame() has never been called, which is illegal.
29822982 // - You are calling ImGui functions after ImGui::EndFrame()/ImGui::Render() and before the next ImGui::NewFrame(), which is also illegal.
2983- IMGUI_API ImGuiIO& GetIOEx (ImGuiContext* ctx);
2983+ IMGUI_API ImGuiIO& GetIO (ImGuiContext* ctx);
2984+ IMGUI_API ImGuiPlatformIO& GetPlatformIO (ImGuiContext* ctx);
29842985 inline ImGuiWindow* GetCurrentWindowRead () { ImGuiContext& g = *GImGui; return g.CurrentWindow ; }
29852986 inline ImGuiWindow* GetCurrentWindow () { ImGuiContext& g = *GImGui; g.CurrentWindow ->WriteAccessed = true ; return g.CurrentWindow ; }
29862987 IMGUI_API ImGuiWindow* FindWindowByID (ImGuiID id);
You can’t perform that action at this time.
0 commit comments