Answers for "drawing lines in sfml"

C++
4

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
0

draw line sfml

sf::RectangleShape line(sf::Vector2f(150, 5));
line.rotate(45);
Posted by: Guest on March-12-2022

Browse Popular Code Answers by Language