MCPcopy Create free account
hub / github.com/WolfireGames/overgrowth / DisposeTextAtlases

Function DisposeTextAtlases

Source/Graphics/text.cpp:703–710  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

701ASTextContext g_as_text_context;
702
703void DisposeTextAtlases() {
704 for (int i = 0; i < g_as_text_context.atlases.num_atlases; ++i) {
705 g_as_text_context.atlases.cached[i].atlas.Dispose();
706 }
707
708 // Reset the cached atlas counter
709 g_as_text_context.atlases.num_atlases = 0;
710}
711
712void AttachTextCanvasTextureToASContext(ASContext* ctx) {
713 g_as_text_context.font_renderer = FontRenderer::Instance();

Callers 1

DisposeMethod · 0.85

Calls 1

DisposeMethod · 0.45

Tested by

no test coverage detected