Exemple #1
0
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);
    }
}
Exemple #2
0
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);
    }
}
Exemple #3
0
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);
    }
}
Exemple #4
0
FloatRect Text::getLocalBounds() const
{
    ensureGeometryUpdate();

    return m_bounds;
}