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

Function FinalizeTextContext

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

Source from the content-addressed store, hash-verified

111 }
112
113 void FinalizeTextContext(HRenderContext render_context)
114 {
115 TextContext& text_context = render_context->m_TextContext;
116 ReleaseTextEntries(text_context);
117 for (uint32_t i = 0; i < text_context.m_ConstantBuffers.Size(); ++i)
118 {
119 dmRender::DeleteNamedConstantBuffer(text_context.m_ConstantBuffers[i]);
120 }
121 dmMemory::AlignedFree(text_context.m_ClientBuffer);
122 dmGraphics::DeleteVertexBuffer(text_context.m_VertexBuffer);
123 dmGraphics::DeleteVertexDeclaration(text_context.m_VertexDecl);
124
125 DestroyFontRenderBackend(text_context.m_FontRenderBackend);
126 }
127
128 void ClearTextEntries(HRenderContext render_context)
129 {

Callers 1

DeleteRenderContextFunction · 0.85

Calls 7

ReleaseTextEntriesFunction · 0.85
AlignedFreeFunction · 0.85
DeleteVertexBufferFunction · 0.85
DeleteVertexDeclarationFunction · 0.85
DestroyFontRenderBackendFunction · 0.85
SizeMethod · 0.45

Tested by

no test coverage detected