SFML community forums
General => Feature requests => Topic started 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);
-
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.