Welcome,
Guest
. Please
login
or
register
. Did you miss your
activation email?
French forum
Home
Help
Search
Login
Register
SFML community forums
»
Help
»
Graphics
»
Applying contextual settings at runtime
Print
Pages: [
1
]
Author
Topic: Applying contextual settings at runtime (Read 1697 times)
0 Members and 1 Guest are viewing this topic.
Antonio9227
Newbie
Posts: 25
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?
Logged
Ixrec
Hero Member
Posts: 1241
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.
Logged
G.
Hero Member
Posts: 1593
Re: Applying contextual settings at runtime
«
Reply #2 on:
October 13, 2013, 06:51:33 pm »
You have to recreate the window.
Logged
Print
Pages: [
1
]
SFML community forums
»
Help
»
Graphics
»
Applying contextual settings at runtime