ShapeRenderer
Draws lines, shapes, and paths using a Batch for optimal performance.
Line mitering can be performed when drawing polygons and paths, see JoinType for options.
Also includes an option to snap lines to the center of pixels.
Ported from Shape Drawer by earlygrey
Author
Colton Daily
Parameters
the batch used to batch draw calls with
a 1x1 slice of a texture. Generally a single white pixel.
Constructors
Types
Functions
Draws a circle around the specified point with the given radius.
Draws an ellipse around the specified point with the given radius's.
Draws an ellipse as a stretched regular polygon estimating the number of sides required (see estimateSidesRequired) to appear smooth enough based on the pixel size that has been set.
Draws a filled circle as a stretched regular polygon estimating the number of sides required (see estimateSidesRequired) to appear smooth enough based on the pixel size that has been set.
Draws a filled ellipse as a stretched regular polygon estimating the number of sides required (see estimateSidesRequired) to appear smooth enough based on the pixel size that has been set.
Draws a filled polygon used the specified vertices.
Draws a filled polygon.
Draws a filled rectangle.
Draws a filled triangle at the specified points.
Draws a line from point A to point B.
Draws a path by drawing a line between each point and the next.
Draws a path by drawing al ine between each point and the next. See path for details.
Draws a regular polygon by drawing lines between the vertices
Draws a rectangle.
Draws a triangle at the specified points.
Properties
The SideEstimator used to calculate the number of sides. Defaults to DefaultSideEstimator.