SFML community forums
Help => Window => Topic started 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 ?
-
Use the create function on the window. It will still re-create the window, but that's just how SFML works. :)
-
It's also how a lot of games do it (ever had a game tell you to restart after changing some settings?)