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

Method GetMaskTexture

libs/drape_frontend/text_layout.cpp:249–259  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

247} // namespace
248
249ref_ptr<dp::Texture> TextLayout::GetMaskTexture() const
250{
251 ASSERT(!m_glyphRegions.empty(), ());
252#ifdef DEBUG
253 ref_ptr<dp::Texture> tex = m_glyphRegions[0].GetTexture();
254 for (GlyphRegion const & g : m_glyphRegions)
255 ASSERT(g.GetTexture() == tex, ());
256#endif
257
258 return m_glyphRegions[0].GetTexture();
259}
260
261size_t TextLayout::GetGlyphCount() const
262{

Callers 4

DrawPathTextPlainMethod · 0.45
DrawPathTextOutlinedMethod · 0.45
DrawSubStringPlainMethod · 0.45
DrawSubStringOutlinedMethod · 0.45

Calls 3

ASSERTFunction · 0.85
emptyMethod · 0.45
GetTextureMethod · 0.45

Tested by

no test coverage detected