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

Author Topic: Is there any way to draw smooth shapes in SFML with no AA?  (Read 2014 times)

0 Members and 1 Guest are viewing this topic.

mkalex777

  • Full Member
  • ***
  • Posts: 206
    • View Profile
Is there any way to draw smooth shapes in SFML with no AA?
« on: October 12, 2015, 08:55:05 am »
I read that OpenGL has ability to draw smooth lines with disabled AA.
I found this settings:
glEnable(GL_BLEND);
glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
glEnable(GL_LINE_SMOOTH);
glHint(GL_LINE_SMOOTH_HINT, GL_NICEST);
 

Can I use something like that with SFML?
The problem is that all shapes (especially circles) looks terribly with disabled AA...

Nexus

  • SFML Team
  • Hero Member
  • *****
  • Posts: 6287
  • Thor Developer
    • View Profile
    • Bromeon
Re: Is there any way to draw smooth shapes in SFML with no AA?
« Reply #1 on: October 16, 2015, 11:59:53 am »
No, SFML doesn't provide that.

And GL_LINE_SMOOTH is not a very well supported feature. For portable graphics, look for a different technique to achieve what you need.
Zloxx II: action platformer
Thor Library: particle systems, animations, dot products, ...
SFML Game Development: