MCPcopy Create free account
hub / github.com/Aegel5/SimpleSwitcher / ClearInputData

Method ClearInputData

imgui_tiny_app/imgui/imgui_draw.cpp:2694–2709  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2692}
2693
2694void ImFontAtlas::ClearInputData()
2695{
2696 IM_ASSERT(!Locked && "Cannot modify a locked ImFontAtlas!");
2697
2698 for (ImFont* font : Fonts)
2699 ImFontAtlasFontDestroyOutput(this, font);
2700 for (ImFontConfig& font_cfg : Sources)
2701 ImFontAtlasFontDestroySourceData(this, &font_cfg);
2702 for (ImFont* font : Fonts)
2703 {
2704 // When clearing this we lose access to the font name and other information used to build the font.
2705 font->Sources.clear();
2706 font->Flags |= ImFontFlags_NoLoadGlyphs;
2707 }
2708 Sources.clear();
2709}
2710
2711// Clear CPU-side copy of the texture data.
2712void ImFontAtlas::ClearTexData()

Callers

nothing calls this directly

Calls 3

clearMethod · 0.45

Tested by

no test coverage detected