CTor
Supported shape types.
Stores a Vertex for this Shape.
Rvalue version.
Stores multiple Vertices for this Shape.
Bind (or unbind) a Texture.
Calculate, store and return the center point.
Returns a pointer to the Texture Rect. With this you can change the existing Rect without setting a new one. You can e.g. collapse the Rect with this method.
Returns a pointer of the Vertex at the given index or null if the index is out of rpoint.
Activate fill mode. This means the whole shape is drawn and not only the outlines.
The current shape will be updated.
Returns the current Blend instance, or null.
Returns the line width.
Return the current smooth
Returns the Shape Type.
Returns the Vertex at the given index or throws an exception, if the index is out of rpoint.
Returns all Vertex of this Shape.
Returns if the fill mode is active or not.
Remove the Vertex on the specific index. If vp is not null, the droped Vertex is stored there.
Set (or reset) the current Blend instance.
Set for <b>all</b> vertices a (new) color.
Rvalue version
Set the line width.
Set target and mode of smoothing.
Set target and mode of smoothing.
Set a Texture Rect
Rvalue version
Set or replace the current Shape type.
Add an array of floats Note that 3 dimensional coordinate components are expected.
Make a new Shape object with the given type and vertices.
Make a new Shape object as Circle.
Apply translation to the object.
Calculate, store and return the center point.
Reset the translation.
Set the rotation center.
Set the rotation center.
Returns the rotation center.
Set a (new) rotation.
Increase/Decrease the rotation.
Returns the current rotation.
Set a new scale.
Increase/Decrease the scale/zoom.
Returns the current scale/zoom.
Shape defines a drawable convex shape. It also defines helper functions to draw simple shapes like lines, rectangles, circles, etc.