MCPcopy Create free account
hub / github.com/Wemino/MarkerPatch / ClearInputData

Method ClearInputData

include/imgui/imgui_draw.cpp:2717–2731  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2715}
2716
2717void ImFontAtlas::ClearInputData()
2718{
2719 IM_ASSERT(!Locked && "Cannot modify a locked ImFontAtlas!");
2720 for (ImFont* font : Fonts)
2721 ImFontAtlasFontDestroyOutput(this, font);
2722 for (ImFontConfig& font_cfg : Sources)
2723 ImFontAtlasFontDestroySourceData(this, &font_cfg);
2724 for (ImFont* font : Fonts)
2725 {
2726 // When clearing this we lose access to the font name and other information used to build the font.
2727 font->Sources.clear();
2728 font->Flags |= ImFontFlags_NoLoadGlyphs;
2729 }
2730 Sources.clear();
2731}
2732
2733// Clear CPU-side copy of the texture data.
2734void ImFontAtlas::ClearTexData()

Callers

nothing calls this directly

Calls 3

clearMethod · 0.45

Tested by

no test coverage detected