| 17628 | } |
| 17629 | |
| 17630 | void 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 | //----------------------------------------------------------------------------- |
nothing calls this directly
no outgoing calls
no test coverage detected