Specialized shape representing a circle.
auto circle = new CircleShape(); circle.radius = 150; circle.outlineColor = Color.Red; circle.outlineThickness = 5; circle.position = Vector2f(10, 20); ... window.draw(circle);
$(PARA Since the graphics card can't draw perfect circles, we have to fake them with multiple triangles connected to each other. The "points count" property of $(U CircleShape) defines how many of these triangles to use, and therefore defines the quality of the circle.)
$(SHAPE_LINK), $(RECTANGLESHAPE_LINK), $(CONVEXSHAPE_LINK)
This class inherits all the functions of $(TRANSFORMABLE_LINK) (position, rotation, scale, bounds, ...) as well as the functions of $(SHAPE_LINK) (outline, color, texture, ...).