MCPcopy Create free account
hub / github.com/defold/defold / ReleaseTextEntries

Function ReleaseTextEntries

engine/render/src/render/font/font_renderer.cpp:48–59  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

46 using namespace dmVMath;
47
48 static void ReleaseTextEntries(TextContext& text_context)
49 {
50 uint32_t entry_count = text_context.m_TextEntries.Size();
51 for (uint32_t i = 0; i < entry_count; ++i)
52 {
53 HTextLayout text_layout = text_context.m_TextEntries[i].m_TextLayout;
54 if (text_layout)
55 {
56 TextLayoutRelease(text_layout);
57 }
58 }
59 }
60
61 void InitializeTextContext(HRenderContext render_context, uint32_t max_characters, uint32_t max_batches)
62 {

Callers 2

FinalizeTextContextFunction · 0.85
ClearTextEntriesFunction · 0.85

Calls 2

TextLayoutReleaseFunction · 0.85
SizeMethod · 0.45

Tested by

no test coverage detected