sf.Shape is a drawable class that allows to define and display a custom convex shape on a render target.
It's only an abstract base, it needs to be specialized for concrete types of shapes (circle, rectangle, convex polygon, star, ...).
In addition to the attributes provided by the specialized shape classes, a shape always has the following attributes:
a texture a texture rectangle a fill color an outline color an outline thickness Each feature is optional, and can be disabled easily:
the texture can be null the fill/outline colors can be sf.Color.Transparent the outline thickness can be zero You can write your own derived shape class, there are only two virtual functions to override:
getPointCount must return the number of points of the shape getPoint must return the points of the shape
sf.RectangleShape, sf.CircleShape, sf.ConvexShape, sf.Transformable