Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <SFML/Window.hpp>
- int main()
- {
- sf::Window window(sf::VideoMode(800, 600, 32), "Window");
- while(window.isOpen())
- {
- sf::Event event;
- while(window.pollEvent(event))
- {
- if(event.type == sf::Event::Closed)
- {
- window.close();
- }
- }
- }
- return 0;
- }
Add Comment
Please, Sign In to add comment