SFML community forums
General => Feature requests => Topic started by: Yuraj on May 01, 2013, 09:36:09 pm
-
Hi,
Why there is not a RoundedRectangle shape in SFML ? :)
-
Why would there be one?
-
You can create your own roundedRectangle class!
It's just a sf::RectangleShape and 4 sf::CircleShape, taped together with duct tape
-
I think someone already did it, and shared it either on the forum or the wiki.
-
thor::roundedRect() (http://www.bromeon.ch/libraries/thor/v2.0/doc/namespacethor_1_1_shapes.html) -- a function, not a class.
-
Why would there be one?
Because I think it's common shape? I know, you can do it on your own (not so hard), but why we need to discover wheel every time? I think it could be useful (mainly for newbies).