0

I would like to switch between fullscreen and windowed mode. Is there some way to do that without restarting whole game?

Etwus
  • 427
  • 3
  • 10

1 Answers1

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);
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