MCPcopy Create free account
hub / github.com/BoomingTech/Piccolo / ClearFreeMemory

Method ClearFreeMemory

engine/3rdparty/imgui/imgui_draw.cpp:1683–1695  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1681//-----------------------------------------------------------------------------
1682
1683void ImDrawListSplitter::ClearFreeMemory()
1684{
1685 for (int i = 0; i < _Channels.Size; i++)
1686 {
1687 if (i == _Current)
1688 memset(&_Channels[i], 0, sizeof(_Channels[i])); // Current channel is a copy of CmdBuffer/IdxBuffer, don't destruct again
1689 _Channels[i]._CmdBuffer.clear();
1690 _Channels[i]._IdxBuffer.clear();
1691 }
1692 _Current = 0;
1693 _Count = 1;
1694 _Channels.clear();
1695}
1696
1697void ImDrawListSplitter::Split(ImDrawList* draw_list, int channels_count)
1698{

Callers 3

ShutdownMethod · 0.45
_ClearFreeMemoryMethod · 0.45

Calls 1

clearMethod · 0.45

Tested by

no test coverage detected