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

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

0 Members and 1 Guest are viewing this topic.

achpile

  • Full Member
  • ***
  • Posts: 231
    • 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: 11032
    • 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
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

 

anything