Welcome,
Guest
. Please
login
or
register
. Did you miss your
activation email?
French forum
Home
Help
Search
Login
Register
SFML community forums
»
General
»
Feature requests
»
sf::RectangleShape(sf::FloatRect) constructor
Print
Pages: [
1
]
Author
Topic: sf::RectangleShape(sf::FloatRect) constructor (Read 3496 times)
0 Members and 2 Guests are viewing this topic.
achpile
Full Member
Posts: 231
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);
Logged
Dispersio -
http://en.sfml-dev.org/forums/index.php?topic=20444
AchBall -
https://en.sfml-dev.org/forums/index.php?topic=22570
Dispersio 2 -
http://en.sfml-dev.org/forums/index.php?topic=22171
Dispersio 3 -
https://en.sfml-dev.org/forums/index.php?topic=29723
eXpl0it3r
SFML Team
Hero Member
Posts: 11034
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.
Logged
Official FAQ:
https://www.sfml-dev.org/faq.php
Official Discord Server:
https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog:
https://duerrenberger.dev/blog/
Print
Pages: [
1
]
SFML community forums
»
General
»
Feature requests
»
sf::RectangleShape(sf::FloatRect) constructor