Answers for "sfml draw line"

C++
2

sfml draw line

sf::Vertex line[] =
{
    sf::Vertex(sf::Vector2f(10, 10)),
    sf::Vertex(sf::Vector2f(150, 150))
};

window.draw(line, 2, sf::Lines);
Posted by: Guest on April-03-2021

Browse Popular Code Answers by Language