| 247 | } // namespace |
| 248 | |
| 249 | ref_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 | |
| 261 | size_t TextLayout::GetGlyphCount() const |
| 262 | { |
no test coverage detected