| 2715 | } |
| 2716 | |
| 2717 | void 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. |
| 2734 | void ImFontAtlas::ClearTexData() |
nothing calls this directly
no test coverage detected