//This is a c++/sfml 2.1 program that draws a circle. #include #include using namespace std; int main() { sf::RenderWindow circleApp(sf::VideoMode(128, 128), "Circle"); sf::Event appEvent; sf::CircleShape circleObj(64.f); circleObj.setFillColor(sf::Color::Red); while(circleApp.isOpen()) { while(circleApp.pollEvent(appEvent)) { if(appEvent.type == sf::Event::Closed) circleApp.close(); } circleApp.clear(); circleApp.draw(circleObj); circleApp.display(); } return (0); }