Advertisement
Guest User

Untitled

a guest
Oct 16th, 2019
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. #include <SFML/Graphics.hpp>
  2. int main()
  3. {
  4. sf::RenderWindow window(sf::VideoMode(1080, 720), "SFML works!");
  5. sf::CircleShape shape(100.f);
  6. shape.setFillColor(sf::Color::Green);
  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. window.clear();
  16. window.draw(shape);
  17. window.display();
  18. }
  19. return 0;
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement