I'm trying to make my program have the ability to toggle between two video modes: Desktop Mode and Windowed Mode.
if (DONT KNOW WHAT TO PUT HERE && (Event.Type == sf::Event::KeyPressed) && (Event.Key.Code == sf::Key::W))
App.Create(DesktopMode, sf::Style::Fullscreen);
if (DONT KNOW WHAT TO PUT HERE && (Event.Type == sf::Event::KeyPressed) && (Event.Key.Code == sf::Key::W))
App.Create(sf::VideoMode::GetMode(0), sf::Style::Resize | sf::Style::Close);
I'm not sure what to put in the if statement for checking the video modes. It seems like I've tried everything. Ugh.