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

Method _SetDrawListSharedData

imgui_tiny_app/imgui/imgui_draw.cpp:443–450  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

441}
442
443void ImDrawList::_SetDrawListSharedData(ImDrawListSharedData* data)
444{
445 if (_Data != NULL)
446 _Data->DrawLists.find_erase_unsorted(this);
447 _Data = data;
448 if (_Data != NULL)
449 _Data->DrawLists.push_back(this);
450}
451
452// Initialize before use in a new frame. We always have a command ready in the buffer.
453// In the majority of cases, you would want to call PushClipRect() and PushTexture() after this.

Callers 1

ImGuiWindowMethod · 0.80

Calls 2

find_erase_unsortedMethod · 0.80
push_backMethod · 0.45

Tested by

no test coverage detected