Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: No member named 'Circle' in sf::Shape  (Read 1589 times)

0 Members and 1 Guest are viewing this topic.

airwinds

  • Newbie
  • *
  • Posts: 2
    • View Profile
No member named 'Circle' in sf::Shape
« 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!

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
No member named 'Circle' in sf::Shape
« Reply #1 on: January 23, 2012, 03:34:24 pm »
You're using outdated documentation; your version of SFML is 2.0.
Laurent Gomila - SFML developer

airwinds

  • Newbie
  • *
  • Posts: 2
    • View Profile
No member named 'Circle' in sf::Shape
« Reply #2 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