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

Function ImFontAtlasBuildDestroy

src/imgui/imgui_draw.cpp:4219–4230  ·  view source on GitHub ↗

Destroy builder and all cached glyphs. Do not destroy actual fonts.

Source from the content-addressed store, hash-verified

4217
4218// Destroy builder and all cached glyphs. Do not destroy actual fonts.
4219void ImFontAtlasBuildDestroy(ImFontAtlas* atlas)
4220{
4221 for (ImFont* font : atlas->Fonts)
4222 ImFontAtlasFontDestroyOutput(atlas, font);
4223 if (atlas->Builder && atlas->FontLoader && atlas->FontLoader->LoaderShutdown)
4224 {
4225 atlas->FontLoader->LoaderShutdown(atlas);
4226 IM_ASSERT(atlas->FontLoaderData == NULL);
4227 }
4228 IM_DELETE(atlas->Builder);
4229 atlas->Builder = NULL;
4230}
4231
4232void ImFontAtlasPackInit(ImFontAtlas * atlas)
4233{

Callers 2

ClearFontsMethod · 0.85
ImFontAtlasBuildClearFunction · 0.85

Calls 2

IM_DELETEFunction · 0.85

Tested by

no test coverage detected