MCPcopy Create free account
hub / github.com/VictorGordan/opengl-tutorials / ClearFreeMemory

Method ClearFreeMemory

ImGUI GLFW Tutorial/imgui/imgui_draw.cpp:1661–1673  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1659//-----------------------------------------------------------------------------
1660
1661void ImDrawListSplitter::ClearFreeMemory()
1662{
1663 for (int i = 0; i < _Channels.Size; i++)
1664 {
1665 if (i == _Current)
1666 memset(&_Channels[i], 0, sizeof(_Channels[i])); // Current channel is a copy of CmdBuffer/IdxBuffer, don't destruct again
1667 _Channels[i]._CmdBuffer.clear();
1668 _Channels[i]._IdxBuffer.clear();
1669 }
1670 _Current = 0;
1671 _Count = 1;
1672 _Channels.clear();
1673}
1674
1675void ImDrawListSplitter::Split(ImDrawList* draw_list, int channels_count)
1676{

Callers 3

ShutdownMethod · 0.45
_ClearFreeMemoryMethod · 0.45

Calls 1

clearMethod · 0.45

Tested by

no test coverage detected