Answers for "draw rectangle in sfml"

0

draw rectangle in sfml

// define a 120x50 rectangle
sf::RectangleShape rectangle(sf::Vector2f(120, 50));

// change the size to 100x100
rectangle.setSize(sf::Vector2f(100, 100));
Posted by: Guest on September-14-2021

Browse Popular Code Answers by Language