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

Author Topic: Applying contextual settings at runtime  (Read 1393 times)

0 Members and 1 Guest are viewing this topic.

Antonio9227

  • Newbie
  • *
  • Posts: 25
    • View Profile
Applying contextual settings at runtime
« on: October 13, 2013, 11:23:45 am »
I want to change the antialiasing level during runtime for a sf::RenderWindow.
How can I do it?

Ixrec

  • Hero Member
  • *****
  • Posts: 1241
    • View Profile
    • Email
Re: Applying contextual settings at runtime
« Reply #1 on: October 13, 2013, 11:27:37 am »
The constructor and create() methods have an optional ContextSettings argument.  Use this argument to tell SFML what antialiasing level you want (among other parameters).

Consult the documentation for details.

G.

  • Hero Member
  • *****
  • Posts: 1592
    • View Profile
Re: Applying contextual settings at runtime
« Reply #2 on: October 13, 2013, 06:51:33 pm »
You have to recreate the window.

 

anything