SFML community forums
Help => Graphics => Topic started by: airwinds on January 23, 2012, 03:27:41 pm
-
I am really new to SFML and I am trying to make a simple game in it. I am trying to draw a circle in my game using the predefined shapes as mentioned in http://www.sfml-dev.org/tutorials/1.6/graphics-shape.php
This is my code
sf::Shape circle = sf::Shape::Circle(50, 50, 50, sf::Color(0, 0, 255));
I get these two errors:
Semantic Issue: No member named 'Circle' in 'sf::Shape'
Semantic Issue: Variable type 'Shape' is an abstract class
I looked at Shape.hpp and it really doesn't have Circle in it. Am I missing some class or using some outdated SFML library?
Can someone help. Thank you!
-
You're using outdated documentation; your version of SFML is 2.0.
-
Oh ok. Found the new documentation.
In the website, 1.6 is on the very top and I just clicked that blindly.
Thank you very much for your reply.
Just for documentation purposes... I found these
sf::RectangleShape, sf::CircleShape, sf::ConvexShape, sf::Transformable