MCPcopy Create free account
hub / github.com/comaps/comaps / CacheStaticGeometry

Method CacheStaticGeometry

libs/drape_frontend/text_layout.cpp:361–367  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

359}
360
361void StraightTextLayout::CacheStaticGeometry(dp::TextureManager::ColorRegion const & colorRegion,
362 gpu::TTextStaticVertexBuffer & staticBuffer) const
363{
364 TextGeometryGenerator staticGenerator(colorRegion, staticBuffer);
365 staticBuffer.reserve(4 * m_glyphRegions.size());
366 Cache(staticGenerator);
367}
368
369void StraightTextLayout::CacheStaticGeometry(dp::TextureManager::ColorRegion const & colorRegion,
370 dp::TextureManager::ColorRegion const & outlineRegion,

Callers 4

DrawPathTextPlainMethod · 0.80
DrawPathTextOutlinedMethod · 0.80
DrawSubStringPlainMethod · 0.80
DrawSubStringOutlinedMethod · 0.80

Calls 3

CacheClass · 0.50
reserveMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected