MCPcopy Create free account
hub / github.com/TheForceEngine/TheForceEngine / ClearFreeMemory

Method ClearFreeMemory

TheForceEngine/TFE_Ui/imGUI/imgui_draw.cpp:2032–2044  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2030//-----------------------------------------------------------------------------
2031
2032void ImDrawListSplitter::ClearFreeMemory()
2033{
2034 for (int i = 0; i < _Channels.Size; i++)
2035 {
2036 if (i == _Current)
2037 memset(&_Channels[i], 0, sizeof(_Channels[i])); // Current channel is a copy of CmdBuffer/IdxBuffer, don't destruct again
2038 _Channels[i]._CmdBuffer.clear();
2039 _Channels[i]._IdxBuffer.clear();
2040 }
2041 _Current = 0;
2042 _Count = 1;
2043 _Channels.clear();
2044}
2045
2046void ImDrawListSplitter::Split(ImDrawList* draw_list, int channels_count)
2047{

Callers 3

ShutdownMethod · 0.80
_ClearFreeMemoryMethod · 0.80

Calls 1

clearMethod · 0.45

Tested by

no test coverage detected