Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: sf::RectangleShape(sf::FloatRect) constructor  (Read 935 times)

0 Members and 1 Guest are viewing this topic.

achpile

  • Full Member
  • ***
  • Posts: 221
    • View Profile
    • Achpile's homepage
    • Email
sf::RectangleShape(sf::FloatRect) constructor
« 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);

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 9191
    • View Profile
    • development blog
    • Email
Re: sf::RectangleShape(sf::FloatRect) constructor
« Reply #1 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.
Official FAQ: https://www.sfml-dev.org/faq.php
Nightly Builds: https://www.nightlybuilds.ch/
——————————————————————
Dev Blog: https://dev.my-gate.net/
Thor: http://www.bromeon.ch/libraries/thor/

 

anything