MCPcopy Create free account
hub / github.com/GPUOpen-LibrariesAndSDKs/Cauldron / AddWindowToRenderListSelectLayer

Function AddWindowToRenderListSelectLayer

libs/imgui/imgui.cpp:2870–2881  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2868}
2869
2870static void AddWindowToRenderListSelectLayer(ImGuiWindow* window)
2871{
2872 // FIXME: Generalize this with a proper layering system so e.g. user can draw in specific layers, below text, ..
2873 ImGuiContext& g = *GImGui;
2874 g.IO.MetricsActiveWindows++;
2875 if (window->Flags & ImGuiWindowFlags_Popup)
2876 AddWindowToRenderList(g.RenderDrawLists[1], window);
2877 else if (window->Flags & ImGuiWindowFlags_Tooltip)
2878 AddWindowToRenderList(g.RenderDrawLists[2], window);
2879 else
2880 AddWindowToRenderList(g.RenderDrawLists[0], window);
2881}
2882
2883// When using this function it is sane to ensure that float are perfectly rounded to integer values, to that e.g. (int)(max.x-min.x) in user's render produce correct result.
2884void ImGui::PushClipRect(const ImVec2& clip_rect_min, const ImVec2& clip_rect_max, bool intersect_with_current_clip_rect)

Callers 1

RenderMethod · 0.85

Calls 1

AddWindowToRenderListFunction · 0.85

Tested by

no test coverage detected