MCPcopy Create free account
hub / github.com/IppClub/Dora-SSR / Clear

Method Clear

Source/3rdParty/imgui/imgui_draw.cpp:2272–2280  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2270//-----------------------------------------------------------------------------
2271
2272void ImDrawData::Clear()
2273{
2274 Valid = false;
2275 CmdListsCount = TotalIdxCount = TotalVtxCount = 0;
2276 CmdLists.resize(0); // The ImDrawList are NOT owned by ImDrawData but e.g. by ImGuiContext, so we don't clear them.
2277 DisplayPos = DisplaySize = FramebufferScale = ImVec2(0.0f, 0.0f);
2278 OwnerViewport = NULL;
2279 Textures = NULL;
2280}
2281
2282// Important: 'out_list' is generally going to be draw_data->CmdLists, but may be another temporary list
2283// as long at it is expected that the result will be later merged into draw_data->CmdLists[].

Callers 14

cleanupMethod · 0.45
destroyMethod · 0.45
BeginTableExMethod · 0.45
ShutdownMethod · 0.45
NavMoveRequestSubmitMethod · 0.45
ClearDragDropMethod · 0.45
_ResetForNewFrameMethod · 0.45
HAIKU_SetClipboardTextFunction · 0.45
DirectFB_RunCommandQueueFunction · 0.45
BustPlotCacheFunction · 0.45
ResetMethod · 0.45
setDefaultFontMethod · 0.45

Calls 2

ImVec2Function · 0.85
resizeMethod · 0.45

Tested by

no test coverage detected