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

Method PathTextHandle

libs/drape_frontend/path_text_handle.cpp:254–264  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

252}
253
254PathTextHandle::PathTextHandle(dp::OverlayID const & id, std::shared_ptr<PathTextContext> const & context, float depth,
255 uint32_t textIndex, uint64_t priority, ref_ptr<dp::TextureManager> textureManager,
256 int minVisibleScale, bool isBillboard)
257 : TextHandle(id, context->GetLayout()->GetGlyphs(), dp::Center, priority, textureManager, minVisibleScale,
258 isBillboard)
259 , m_context(context)
260 , m_textIndex(textIndex)
261 , m_depth(depth)
262{
263 m_buffer.resize(4 * m_context->GetLayout()->GetGlyphCount());
264}
265
266bool PathTextHandle::Update(ScreenBase const & screen)
267{

Callers

nothing calls this directly

Calls 4

GetLayoutMethod · 0.80
GetGlyphCountMethod · 0.80
GetGlyphsMethod · 0.45
resizeMethod · 0.45

Tested by

no test coverage detected