#include <SFML\Window.hpp>


int main()
{
	sf::Window window(sf::VideoMode(800, 600), "SFML works!");

	while (window.isOpen())
	{
		sf::Event event;
		while (window.pollEvent(event))
		{
			if (event.type == sf::Event::Closed)
				window.close();
		}

		window.display();
	}

	return 0;
}
#include <SFML\Window.hpp>


int main()
{
	bool fullscreen = false;
	sf::Window window(sf::VideoMode(800, 600), "SFML works!");

	while (window.isOpen())
	{
		sf::Event event;
		while (window.pollEvent(event))
		{
			if (event.type == sf::Event::Closed)
				window.close();

			if (event.type == sf::Event::KeyPressed) {
				if (event.key.code == sf::Keyboard::F) {
					window.close();
					if (fullscreen) {
						window.create(sf::VideoMode(800, 600), "SFML works!");
						fullscreen = false;
					}
					else {
						window.create(sf::VideoMode(800, 600), "SFML works!", sf::Style::Fullscreen);
						fullscreen = true;
					}
				}
				else if (event.key.code == sf::Keyboard::Escape) {
					window.close();
				}
			}
		}

		window.display();
	}

	return 0;
}
ADD fullscreen option for sfml window, press F atm
ADD fullscreen option for sfml window, press F atm
