|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.newdawn.slick.geom.ShapeRenderer
public final class ShapeRenderer
| Constructor Summary | |
|---|---|
ShapeRenderer()
|
|
| Method Summary | |
|---|---|
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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ShapeRenderer()
| Method Detail |
|---|
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 drawing
public 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 shape
public static final void textureFit(Shape shape,
Image image)
shape - The shape to texture.image - The image to tile across the shape
public 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 texturing
public 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 texturing
public static final void fill(Shape shape,
ShapeFill fill)
shape - The shape to fill.fill - The fill to apply
public 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 apply
public 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
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||