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

Author Topic: Change sf::Shape::Circle color !  (Read 1865 times)

0 Members and 1 Guest are viewing this topic.

Naufr4g0

  • Full Member
  • ***
  • Posts: 112
    • View Profile
Change sf::Shape::Circle color !
« on: November 04, 2011, 12:37:27 pm »
How can I set a different color for a sf::Shape::Circle shape?

circle.SetColor( sf::Color ) doesn't work!
Where is the color information I need?
And for a sf::Shape::Line?

Thanks in advance :)

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
Change sf::Shape::Circle color !
« Reply #1 on: November 04, 2011, 01:16:05 pm »
Don't pass a color when you create the shape (or use white). Then SetColor will work as expected.
Laurent Gomila - SFML developer

Naufr4g0

  • Full Member
  • ***
  • Posts: 112
    • View Profile
Change sf::Shape::Circle color !
« Reply #2 on: November 04, 2011, 01:32:57 pm »
Quote from: "Laurent"
Don't pass a color when you create the shape (or use white). Then SetColor will work as expected.


Thanks very much! Now it works! :)