SFML community forums

Help => Graphics => Topic started by: airwinds on January 23, 2012, 03:27:41 pm

Title: No member named 'Circle' in sf::Shape
Post 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
Code: [Select]
sf::Shape circle = sf::Shape::Circle(50, 50, 50, sf::Color(0, 0, 255));


I get these two errors:
Code: [Select]
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!
Title: No member named 'Circle' in sf::Shape
Post by: Laurent on January 23, 2012, 03:34:24 pm
You're using outdated documentation; your version of SFML is 2.0.
Title: No member named 'Circle' in sf::Shape
Post by: airwinds on January 23, 2012, 03:44:48 pm
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