| 2692 | } |
| 2693 | |
| 2694 | void 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. |
| 2712 | void ImFontAtlas::ClearTexData() |
nothing calls this directly
no test coverage detected