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
»
Rounded Rectangle
Print
Pages: [
1
]
Author
Topic: Rounded Rectangle (Read 6087 times)
0 Members and 1 Guest are viewing this topic.
Yuraj
Newbie
Posts: 8
C#
Rounded Rectangle
«
on:
May 01, 2013, 09:36:09 pm »
Hi,
Why there is not a RoundedRectangle shape in SFML ?
Logged
Laurent
Administrator
Hero Member
Posts: 32498
Re: Rounded Rectangle
«
Reply #1 on:
May 01, 2013, 10:46:35 pm »
Why would there be one?
Logged
Laurent Gomila - SFML developer
santiaboy
Full Member
Posts: 118
Re: Rounded Rectangle
«
Reply #2 on:
May 01, 2013, 11:03:16 pm »
You can create your own roundedRectangle class!
It's just a sf::RectangleShape and 4 sf::CircleShape, taped together with duct tape
Logged
Plataforma ULTRA -
Mod Friendly Platformer
<- SFML Forums
Official Website
Laurent
Administrator
Hero Member
Posts: 32498
Re: Rounded Rectangle
«
Reply #3 on:
May 01, 2013, 11:12:46 pm »
I think someone already did it, and shared it either on the forum or the wiki.
Logged
Laurent Gomila - SFML developer
Nexus
SFML Team
Hero Member
Posts: 6287
Thor Developer
Re: Rounded Rectangle
«
Reply #4 on:
May 01, 2013, 11:17:25 pm »
thor::roundedRect()
-- a function, not a class.
Logged
Zloxx II
: action platformer
Thor Library
: particle systems, animations, dot products, ...
SFML Game Development
:
Yuraj
Newbie
Posts: 8
C#
Re: Rounded Rectangle
«
Reply #5 on:
May 02, 2013, 01:16:39 am »
Quote from: Laurent on May 01, 2013, 10:46:35 pm
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).
Logged
Print
Pages: [
1
]
SFML community forums
»
General
»
Feature requests
»
Rounded Rectangle
anything