Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <SFML/Graphics.hpp>
- #include <conio.h>
- #include <iostream>
- using namespace sf;
- using namespace std;
- int main()
- {
- RenderWindow window(sf::VideoMode(520, 520), "SFML works!");
- CircleShape shape(520/2.f);
- shape.setFillColor(sf::Color::Green);
- while (window.isOpen())
- {
- Event event;
- while (window.pollEvent(event))
- {
- if (event.type == Event::Closed)
- window.close();
- }
- window.clear();
- window.draw(shape);
- window.display();
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement