home
clear breadcrumbs
search
login
 
Shape circle
CircleShape ball(50.f); ball.setFillColor(Color::Red); ball.setPosition(window.getSize().x / 2, window.getSize().y / 2); ball.setOrigin(ball.getRadius(), ball.getRadius()); while(window.isOpen()) { window.clear(); window.draw(ball); window.display(); }