MCPcopy Create free account
hub / github.com/cinder/Cinder / ClearInputData

Method ClearInputData

src/imgui/imgui_draw.cpp:2672–2687  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2670}
2671
2672void ImFontAtlas::ClearInputData()
2673{
2674 IM_ASSERT(!Locked && "Cannot modify a locked ImFontAtlas!");
2675
2676 for (ImFont* font : Fonts)
2677 ImFontAtlasFontDestroyOutput(this, font);
2678 for (ImFontConfig& font_cfg : Sources)
2679 ImFontAtlasFontDestroySourceData(this, &font_cfg);
2680 for (ImFont* font : Fonts)
2681 {
2682 // When clearing this we lose access to the font name and other information used to build the font.
2683 font->Sources.clear();
2684 font->Flags |= ImFontFlags_NoLoadGlyphs;
2685 }
2686 Sources.clear();
2687}
2688
2689// Clear CPU-side copy of the texture data.
2690void ImFontAtlas::ClearTexData()

Callers

nothing calls this directly

Calls 3

clearMethod · 0.45

Tested by

no test coverage detected