MCPcopy Create free account
hub / github.com/SFML/SFML / draw

Method draw

src/SFML/Graphics/Text.cpp:741–754  ·  view source on GitHub ↗

///////////////////////////////////////////////////////

Source from the content-addressed store, hash-verified

739
740////////////////////////////////////////////////////////////
741void Text::draw(RenderTarget& target, RenderStates states) const
742{
743 ensureGeometryUpdate();
744
745 states.transform *= getTransform();
746 states.texture = &m_font->getTexture(m_characterSize);
747 states.coordinateType = CoordinateType::Pixels;
748
749 // Only draw the outline if there is something to draw
750 if (m_outlineVertices.getVertexCount() > 0)
751 target.draw(m_outlineVertices, states);
752
753 target.draw(m_vertices, states);
754}
755
756
757////////////////////////////////////////////////////////////

Callers

nothing calls this directly

Calls 2

getTextureMethod · 0.80
getVertexCountMethod · 0.45

Tested by

no test coverage detected