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

Function HandleCacheMiss

engine/render/src/render/font/fontmap.cpp:365–377  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

363 }
364
365 static FontResult HandleCacheMiss(dmRender::HFontMap font_map, HFont font, uint32_t glyph_index, uint64_t key, FontGlyph** glyph)
366 {
367 if (!font_map->m_OnGlyphCacheMiss)
368 return FONT_RESULT_ERROR;
369
370 FontResult r = font_map->m_OnGlyphCacheMiss(font_map->m_OnGlyphCacheMissContext, font_map, font, glyph_index, glyph);
371 if (FONT_RESULT_OK == r && glyph != 0)
372 {
373 return FONT_RESULT_OK;
374 }
375
376 return FONT_RESULT_ERROR;
377 }
378
379 FontResult GetOrCreateGlyphByIndex(dmRender::HFontMap font_map, HFont font, uint32_t glyph_index, FontGlyph** glyph)
380 {

Callers 1

GetOrCreateGlyphByIndexFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected