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

Function AddGlyph

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

Source from the content-addressed store, hash-verified

356 }
357
358 static void AddGlyph(dmRender::HFontMap font_map, uint64_t key, FontGlyph* glyph)
359 {
360 if (font_map->m_Glyphs.Full())
361 font_map->m_Glyphs.OffsetCapacity(16);
362 font_map->m_Glyphs.Put(key, glyph);
363 }
364
365 static FontResult HandleCacheMiss(dmRender::HFontMap font_map, HFont font, uint32_t glyph_index, uint64_t key, FontGlyph** glyph)
366 {

Callers 1

GetOrCreateGlyphByIndexFunction · 0.85

Calls 3

FullMethod · 0.45
OffsetCapacityMethod · 0.45
PutMethod · 0.45

Tested by

no test coverage detected