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

Method Draw

libs/drape_frontend/path_text_shape.cpp:150–160  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

148}
149
150void PathTextShape::Draw(ref_ptr<dp::GraphicsContext> context, ref_ptr<dp::Batcher> batcher,
151 ref_ptr<dp::TextureManager> textures) const
152{
153 if (m_context->GetLayout() == nullptr || m_context->GetOffsets().empty())
154 return;
155
156 if (m_params.m_textFont.m_outlineColor == dp::Color::Transparent())
157 DrawPathTextPlain(context, textures, batcher);
158 else
159 DrawPathTextOutlined(context, textures, batcher);
160}
161} // namespace df

Callers

nothing calls this directly

Calls 3

GetLayoutMethod · 0.80
GetOffsetsMethod · 0.80
emptyMethod · 0.45

Tested by

no test coverage detected