SFML community forums

Help => Graphics => Topic started by: kapesu8 on May 05, 2012, 02:28:35 pm

Title: SFML 2.0 shapes
Post by: kapesu8 on May 05, 2012, 02:28:35 pm
Earlier you could just do like
sf::Shape circle = sf::Shape::Circle(200, 200, 100, sf::Color::Yellow, 10, sf::Color::Blue);
right?

But it doesn't seem to work anymore..
How I'm supposed to work with 2.0 shapes?
Title: Re: SFML 2.0 shapes
Post by: Nexus on May 05, 2012, 02:41:39 pm
There are now specialized classes like sf::CircleShape.
Title: Re: SFML 2.0 shapes
Post by: kapesu8 on May 05, 2012, 03:19:41 pm
Is there any documentation for this?
Title: Re: SFML 2.0 shapes
Post by: Nexus on May 05, 2012, 03:32:00 pm
Of course, have you even searched? On the main SFML page, there is a big link "Documentation" on the left...
Title: Re: SFML 2.0 shapes
Post by: kapesu8 on May 05, 2012, 03:44:09 pm
Oh nvm :/