Advertisement
Guest User

Untitled

a guest
Aug 22nd, 2015
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.41 KB | None | 0 0
  1. #include <SFML/Window.hpp>
  2.  
  3. int main()
  4. {
  5.     sf::Window window(sf::VideoMode(800, 600), "SFML Resolution Test");
  6.  
  7.     while (window.isOpen())
  8.     {
  9.         sf::Event event;
  10.         while (window.pollEvent(event))
  11.         {
  12.             if (event.type == sf::Event::Closed)
  13.                 window.close();
  14.         }
  15.     }
  16.  
  17.     return 0;
  18. }
  19.  
  20.  
  21. Compiled with:
  22. g++ main.cpp -o test -lsfml-window -lsfml-system
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement