public final class ShapeRenderer
extends java.lang.Object
| Constructor and Description |
|---|
ShapeRenderer() |
| Modifier and Type | Method and Description |
|---|---|
static void |
draw(Shape shape)
Draw the outline of the given shape.
|
static void |
draw(Shape shape,
ShapeFill fill)
Draw the outline of the given shape.
|
static void |
fill(Shape shape)
Draw the the given shape filled in.
|
static void |
fill(Shape shape,
ShapeFill fill)
Draw the the given shape filled in.
|
static void |
texture(Shape shape,
Image image)
Draw the the given shape filled in with a texture.
|
static void |
texture(Shape shape,
Image image,
float scaleX,
float scaleY)
Draw the the given shape filled in with a texture.
|
static void |
texture(Shape shape,
Image image,
float scaleX,
float scaleY,
ShapeFill fill)
Draw the the given shape filled in with a texture.
|
static void |
texture(Shape shape,
Image image,
TexCoordGenerator gen)
Draw the the given shape filled in with a texture.
|
static void |
textureFit(Shape shape,
Image image)
Draw the the given shape filled in with a texture.
|
static void |
textureFit(Shape shape,
Image image,
float scaleX,
float scaleY)
Draw the the given shape filled in with a texture.
|
static boolean |
validFill(Shape shape)
Check there are enough points to fill
|
public static final void draw(Shape shape)
shape - The shape to draw.public static final void draw(Shape shape, ShapeFill fill)
shape - The shape to draw.fill - The fill to applypublic static boolean validFill(Shape shape)
shape - THe shape we're drawingpublic static final void fill(Shape shape)
shape - The shape to fill.public static final void texture(Shape shape, Image image)
shape - The shape to texture.image - The image to tile across the shapepublic static final void textureFit(Shape shape, Image image)
shape - The shape to texture.image - The image to tile across the shapepublic static final void texture(Shape shape, Image image, float scaleX, float scaleY)
shape - The shape to texture.image - The image to tile across the shapescaleX - The scale to apply on the x axis for texturingscaleY - The scale to apply on the y axis for texturingpublic static final void textureFit(Shape shape, Image image, float scaleX, float scaleY)
shape - The shape to texture.image - The image to tile across the shapescaleX - The scale to apply on the x axis for texturingscaleY - The scale to apply on the y axis for texturingpublic static final void fill(Shape shape, ShapeFill fill)
shape - The shape to fill.fill - The fill to applypublic static final void texture(Shape shape, Image image, float scaleX, float scaleY, ShapeFill fill)
shape - The shape to texture.image - The image to tile across the shapescaleX - The scale to apply on the x axis for texturingscaleY - The scale to apply on the y axis for texturingfill - The fill to applypublic static final void texture(Shape shape, Image image, TexCoordGenerator gen)
shape - The shape to texture.image - The image to tile across the shapegen - The texture coordinate generator to create coordiantes for the shape