MCPcopy Create free account
hub / github.com/Aegel5/SimpleSwitcher / DestroyPlatformWindows

Method DestroyPlatformWindows

imgui_tiny_app/imgui/imgui.cpp:17630–17641  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

17628}
17629
17630void ImGui::DestroyPlatformWindows()
17631{
17632 // We call the destroy window on every viewport (including the main viewport, index 0) to give a chance to the backend
17633 // to clear any data they may have stored in e.g. PlatformUserData, RendererUserData.
17634 // It is convenient for the platform backend code to store something in the main viewport, in order for e.g. the mouse handling
17635 // code to operator a consistent manner.
17636 // It is expected that the backend can handle calls to Renderer_DestroyWindow/Platform_DestroyWindow without
17637 // crashing if it doesn't have data stored.
17638 ImGuiContext& g = *GImGui;
17639 for (ImGuiViewportP* viewport : g.Viewports)
17640 DestroyPlatformWindow(viewport);
17641}
17642
17643
17644//-----------------------------------------------------------------------------

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected