I would like to switch between fullscreen and windowed mode. Is there some way to do that without restarting whole game?
Asked
Active
Viewed 84 times
1 Answers
1
I would suggest calling the create method on your window (C++, but I'm sure it works in C# as well):
yourWindow->create(sf::VideoMode::getDesktopMode(), "Title", sf::Style::Fullscreen);
![](../../users/profiles/13620315.webp)
Tymo Tymo
- 55
- 4
-
I am marking this as answer because it helped me to find the solution. The c# version does not have the create method, but it can be done similarly by closing existing window and assigning newly created window to the existing reference. – Etwus May 27 '20 at 14:30