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

Method CreateOverlayHandle

libs/drape_frontend/path_text_shape.cpp:140–148  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

138}
139
140drape_ptr<dp::OverlayHandle> PathTextShape::CreateOverlayHandle(uint32_t textIndex,
141 ref_ptr<dp::TextureManager> textures) const
142{
143 dp::OverlayID overlayId(m_params.m_featureId, m_params.m_markId, m_tileCoords, m_baseTextIndex + textIndex);
144 auto const layout = m_context->GetLayout();
145 auto const priority = GetOverlayPriority(textIndex, layout->GetGlyphCount());
146 return make_unique_dp<PathTextHandle>(overlayId, m_context, m_params.m_depth, textIndex, priority, textures,
147 m_params.m_minVisibleScale, true /* isBillboard */);
148}
149
150void PathTextShape::Draw(ref_ptr<dp::GraphicsContext> context, ref_ptr<dp::Batcher> batcher,
151 ref_ptr<dp::TextureManager> textures) const

Callers

nothing calls this directly

Calls 2

GetLayoutMethod · 0.80
GetGlyphCountMethod · 0.80

Tested by

no test coverage detected