MCPcopy Create free account
hub / github.com/RenderKit/embree / DebugNodeWindowsListByBeginStackParent

Method DebugNodeWindowsListByBeginStackParent

tutorials/common/imgui/imgui.cpp:13852–13867  ·  view source on GitHub ↗

FIXME-OPT: This is technically suboptimal, but it is simpler this way.

Source from the content-addressed store, hash-verified

13850
13851// FIXME-OPT: This is technically suboptimal, but it is simpler this way.
13852void ImGui::DebugNodeWindowsListByBeginStackParent(ImGuiWindow** windows, int windows_size, ImGuiWindow* parent_in_begin_stack)
13853{
13854 for (int i = 0; i < windows_size; i++)
13855 {
13856 ImGuiWindow* window = windows[i];
13857 if (window->ParentWindowInBeginStack != parent_in_begin_stack)
13858 continue;
13859 char buf[20];
13860 ImFormatString(buf, IM_ARRAYSIZE(buf), "[%04d] Window", window->BeginOrderWithinContext);
13861 //BulletText("[%04d] Window '%s'", window->BeginOrderWithinContext, window->Name);
13862 DebugNodeWindow(window, buf);
13863 Indent();
13864 DebugNodeWindowsListByBeginStackParent(windows + i + 1, windows_size - i - 1, window);
13865 Unindent();
13866 }
13867}
13868
13869//-----------------------------------------------------------------------------
13870// [SECTION] DEBUG LOG WINDOW

Callers

nothing calls this directly

Calls 1

ImFormatStringFunction · 0.85

Tested by

no test coverage detected