SFML community forums

Help => Window => Topic started by: Phanoo on January 22, 2018, 10:45:53 am

Title: Changing dynamically window contextsettings
Post by: Phanoo on January 22, 2018, 10:45:53 am
Hello

In my program i need to change the window contextsettings dynamically, what I do atm is closing the window, destroying the window pointer, and re-creating it with the new parameters. It works, but I'd prefer to have a smooth change, without the user seeing the window being closed and re-opened. Is there a way to do that ?
Title: Re: Changing dynamically window contextsettings
Post by: eXpl0it3r on January 22, 2018, 11:02:08 am
Use the create function on the window. It will still re-create the window, but that's just how SFML works. :)
Title: Re: Changing dynamically window contextsettings
Post by: dabbertorres on January 22, 2018, 09:38:04 pm
It's also how a lot of games do it (ever had a game tell you to restart after changing some settings?)