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

Author Topic: SFML 2.0 shapes  (Read 2476 times)

0 Members and 1 Guest are viewing this topic.

kapesu8

  • Newbie
  • *
  • Posts: 32
    • View Profile
    • Email
SFML 2.0 shapes
« 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?

Nexus

  • SFML Team
  • Hero Member
  • *****
  • Posts: 6287
  • Thor Developer
    • View Profile
    • Bromeon
Re: SFML 2.0 shapes
« Reply #1 on: May 05, 2012, 02:41:39 pm »
There are now specialized classes like sf::CircleShape.
Zloxx II: action platformer
Thor Library: particle systems, animations, dot products, ...
SFML Game Development:

kapesu8

  • Newbie
  • *
  • Posts: 32
    • View Profile
    • Email
Re: SFML 2.0 shapes
« Reply #2 on: May 05, 2012, 03:19:41 pm »
Is there any documentation for this?

Nexus

  • SFML Team
  • Hero Member
  • *****
  • Posts: 6287
  • Thor Developer
    • View Profile
    • Bromeon
Re: SFML 2.0 shapes
« Reply #3 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...
Zloxx II: action platformer
Thor Library: particle systems, animations, dot products, ...
SFML Game Development:

kapesu8

  • Newbie
  • *
  • Posts: 32
    • View Profile
    • Email
Re: SFML 2.0 shapes
« Reply #4 on: May 05, 2012, 03:44:09 pm »
Oh nvm :/

 

anything