| 2670 | } |
| 2671 | |
| 2672 | void 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. |
| 2690 | void ImFontAtlas::ClearTexData() |
nothing calls this directly
no test coverage detected