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

Function CanCacheTextureGrow

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

Source from the content-addressed store, hash-verified

735 }
736
737 static bool CanCacheTextureGrow(HFontMap font_map)
738 {
739 if (!font_map->m_DynamicCacheSize)
740 {
741 return false;
742 }
743
744 uint16_t width = font_map->m_CacheWidth;
745 uint16_t height = font_map->m_CacheHeight;
746 bool result = GetNextCacheSize(font_map, &width, &height);
747 return result;
748 }
749
750 CacheGlyph* AddGlyphToCache(HFontMap font_map, uint32_t frame, uint64_t glyph_key, FontGlyph* glyph, int32_t g_offset_y)
751 {

Callers 1

AddGlyphToCacheFunction · 0.85

Calls 1

GetNextCacheSizeFunction · 0.85

Tested by

no test coverage detected