This commit is contained in:
Mitchell Hansen
2016-07-17 20:41:38 -07:00
commit 12a33740f9
7 changed files with 421 additions and 0 deletions

26
src/main.cpp Normal file
View File

@@ -0,0 +1,26 @@
#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;
}