void Text::draw(RenderTarget& target, RenderStates states) const { if (m_font) { ensureGeometryUpdate(); states.transform *= getTransform(); states.texture = &m_font->getTexture(m_characterSize); target.draw(m_vertices, states); } }
void Text::draw(RenderTarget& target, RenderStates states) { if (m_font) { ensureGeometryUpdate(); states.transform.combine(getTransform().getMatrix()); //m_vertices.transform(getTransform()); states.texture = &m_font->getTexture(m_characterSize); target.draw(m_vertices, states); } }
void Text::draw(RenderTarget& target, RenderStates states) const { if (m_font) { ensureGeometryUpdate(); states.transform *= getTransform(); states.texture = &m_font->getTexture(m_characterSize); // Only draw the outline if there is something to draw if (m_outlineThickness != 0) target.draw(m_outlineVertices, states); target.draw(m_vertices, states); } }
FloatRect Text::getLocalBounds() const { ensureGeometryUpdate(); return m_bounds; }