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

Method CacheDynamicGeometry

libs/drape_frontend/text_layout.cpp:384–390  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

382}
383
384void StraightTextLayout::CacheDynamicGeometry(glsl::vec2 const & pixelOffset,
385 gpu::TTextDynamicVertexBuffer & dynamicBuffer) const
386{
387 StraightTextGeometryGenerator generator(m_pivot, pixelOffset, m_textSizeRatio, dynamicBuffer);
388 dynamicBuffer.reserve(4 * m_glyphRegions.size());
389 Cache(generator);
390}
391
392PathTextLayout::PathTextLayout(m2::PointD const & tileCenter, std::string const & text, float fontSize,
393 ref_ptr<dp::TextureManager> textureManager,

Callers 4

UpdateMethod · 0.80
UpdateMethod · 0.80
DrawSubStringPlainMethod · 0.80
DrawSubStringOutlinedMethod · 0.80

Calls 11

ToVec2Function · 0.85
vec2Class · 0.85
BeginAgainMethod · 0.80
GetPixelSizeMethod · 0.80
CacheClass · 0.50
DotProductFunction · 0.50
reserveMethod · 0.45
sizeMethod · 0.45
AdvanceMethod · 0.45
resizeMethod · 0.45
NormalizeMethod · 0.45

Tested by

no test coverage detected