You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
454 B
27 lines
454 B
8 years ago
|
#include <iostream>
|
||
|
#include <SFML/Graphics.hpp>
|
||
|
|
||
|
int main(){
|
||
|
|
||
|
|
||
|
sf::RenderWindow window(sf::VideoMode(300, 300), "SFML");
|
||
|
sf::CircleShape shape(10.0f);
|
||
|
shape.setFillColor(sf::Color::Green);
|
||
|
|
||
|
while (window.isOpen()) {
|
||
|
sf::Event event;
|
||
|
while (window.pollEvent(event)){
|
||
|
if (event.type == sf::Event::Closed){
|
||
|
window.close();
|
||
|
}
|
||
|
}
|
||
|
|
||
|
window.clear();
|
||
|
window.draw(shape);
|
||
|
window.display();
|
||
|
|
||
|
}
|
||
|
|
||
|
return 0;
|
||
|
}
|