Advertisement
Guest User

Untitled

a guest
Apr 23rd, 2018
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. #include <SFML/Graphics.hpp>
  2.  
  3. int main()
  4. {
  5. sf::RenderWindow window{sf::VideoMode{800, 600}, "SFML works!"};
  6.  
  7.  
  8. while (window.isOpen())
  9. {
  10. sf::Event event;
  11. while (window.pollEvent(event))
  12. {
  13. if (event.type == sf::Event::Closed)
  14. window.close();
  15. }
  16.  
  17. window.clear(sf::Color::Red);
  18.  
  19. window.display();
  20. }
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement