MCPcopy Create free account
hub / github.com/cinder/Cinder / ClearFreeMemory

Method ClearFreeMemory

src/imgui/imgui_draw.cpp:2105–2117  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2103//-----------------------------------------------------------------------------
2104
2105void ImDrawListSplitter::ClearFreeMemory()
2106{
2107 for (int i = 0; i < _Channels.Size; i++)
2108 {
2109 if (i == _Current)
2110 memset(&_Channels[i], 0, sizeof(_Channels[i])); // Current channel is a copy of CmdBuffer/IdxBuffer, don't destruct again
2111 _Channels[i]._CmdBuffer.clear();
2112 _Channels[i]._IdxBuffer.clear();
2113 }
2114 _Current = 0;
2115 _Count = 1;
2116 _Channels.clear();
2117}
2118
2119void ImDrawListSplitter::Split(ImDrawList* draw_list, int channels_count)
2120{

Callers 3

ShutdownMethod · 0.80
_ClearFreeMemoryMethod · 0.80

Calls 1

clearMethod · 0.45

Tested by

no test coverage detected