///////////////////////////////////////////////////////
| 739 | |
| 740 | //////////////////////////////////////////////////////////// |
| 741 | void 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 | //////////////////////////////////////////////////////////// |
nothing calls this directly
no test coverage detected