SFML community forums

General => Feature requests => Topic started by: achpile on April 14, 2015, 07:36:44 pm

Title: sf::RectangleShape(sf::FloatRect) constructor
Post by: achpile on April 14, 2015, 07:36:44 pm
I think it will be useful to make a RectangleShape constructor with FloatRect argument ;)

position = sf::Vector2f(left, top);
size = sf::Vector2f(width, height);
Title: Re: sf::RectangleShape(sf::FloatRect) constructor
Post by: eXpl0it3r on April 14, 2015, 08:38:27 pm
It kind of make sense if you think about it, however for consistency one would have to change all the shapes to take a position in the constructor, which then doesn't really seem ideal.