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

Author Topic: antialiasing for drawing circles  (Read 1755 times)

0 Members and 1 Guest are viewing this topic.

paratam

  • Newbie
  • *
  • Posts: 2
    • View Profile
antialiasing for drawing circles
« on: November 06, 2012, 11:31:37 am »
Hi,
I would like to know if it's possible and how to draw circles with antialiasing?
I've tried to put different values to the antialiasing parameter of the RenderWindow, but I still get a rendering without anitaliasing.

(I'm using a git version of SFML from the beginning of October)

Thanks

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Re: antialiasing for drawing circles
« Reply #1 on: November 06, 2012, 11:47:48 am »
Do you draw your circles with sf::CircleShapes?

Have you checked the antialiasing level that SFML actually used? (it may be lower than what you specified, if your graphics card doesn't allow it).

Are you on Linux? (antialiasing doesn't work on this OS)
Laurent Gomila - SFML developer

paratam

  • Newbie
  • *
  • Posts: 2
    • View Profile
Re: antialiasing for drawing circles
« Reply #2 on: November 06, 2012, 08:46:34 pm »
Yes I was drawing my circles with sf::CircleShapes.

And indeed when I get back the antialiasingLevel value from the sf::ContextSettings after window creation it contains 0.

Why antialiasing doesn't work on Linux?

Also I think you should tell about this in the documentation, because I have search for more than half an hour how to enable this.

Anyway thanks for the answer, and thanks to answer that fast!

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Re: antialiasing for drawing circles
« Reply #3 on: November 06, 2012, 08:54:57 pm »
Laurent Gomila - SFML developer