MCPcopy Create free account
hub / github.com/ZeroMemoryEx/Chaos-Rootkit / ClearInputData

Method ClearInputData

ring3-gui/libs/imgui/imgui_draw.cpp:1981–2002  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1979}
1980
1981void ImFontAtlas::ClearInputData()
1982{
1983 IM_ASSERT(!Locked && "Cannot modify a locked ImFontAtlas between NewFrame() and EndFrame/Render()!");
1984 for (int i = 0; i < ConfigData.Size; i++)
1985 if (ConfigData[i].FontData && ConfigData[i].FontDataOwnedByAtlas)
1986 {
1987 IM_FREE(ConfigData[i].FontData);
1988 ConfigData[i].FontData = NULL;
1989 }
1990
1991 // When clearing this we lose access to the font name and other information used to build the font.
1992 for (int i = 0; i < Fonts.Size; i++)
1993 if (Fonts[i]->ConfigData >= ConfigData.Data && Fonts[i]->ConfigData < ConfigData.Data + ConfigData.Size)
1994 {
1995 Fonts[i]->ConfigData = NULL;
1996 Fonts[i]->ConfigDataCount = 0;
1997 }
1998 ConfigData.clear();
1999 CustomRects.clear();
2000 PackIdMouseCursors = PackIdLines = -1;
2001 // Important: we leave TexReady untouched
2002}
2003
2004void ImFontAtlas::ClearTexData()
2005{

Callers

nothing calls this directly

Calls 1

clearMethod · 0.45

Tested by

no test coverage detected