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

Function MakeGlyphIndexKey

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

Source from the content-addressed store, hash-verified

350 }
351
352 uint64_t MakeGlyphIndexKey(HFont font, uint32_t glyph_index)
353 {
354 uint64_t path_hash = (uint64_t)FontGetPathHash(font);
355 return path_hash<<32 | glyph_index;
356 }
357
358 static void AddGlyph(dmRender::HFontMap font_map, uint64_t key, FontGlyph* glyph)
359 {

Callers 5

GetOrCreateGlyphByIndexFunction · 0.85
AddGlyphByIndexFunction · 0.85
RemoveGlyphByIndexFunction · 0.85

Calls 1

FontGetPathHashFunction · 0.85

Tested by

no test coverage detected