SHARE
TWEET

Untitled

a guest Mar 20th, 2020 50 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top