Guest User

Untitled

a guest
Jan 10th, 2016
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. #include <SFML/Graphics.hpp>
  2.  
  3. int main()
  4. {
  5. sf::RenderWindow window(sf::VideoMode(200, 200), "SFML works!");
  6. sf::CircleShape shape(100.f);
  7. shape.setFillColor(sf::Color::Green);
  8.  
  9. while (window.isOpen())
  10. {
  11. sf::Event event;
  12. while (window.pollEvent(event))
  13. {
  14. if (event.type == sf::Event::Closed)
  15. window.close();
  16. }
  17.  
  18. window.clear();
  19. window.draw(shape);
  20. window.display();
  21. }
  22.  
  23. return 0;
  24. }
Add Comment
Please, Sign In to add comment