public class RepeatablePolygonSprite
extends java.lang.Object
| Constructor and Description |
|---|
RepeatablePolygonSprite() |
| Modifier and Type | Method and Description |
|---|---|
void |
draw(PolygonSpriteBatch batch) |
void |
setColor(Color color) |
void |
setPolygon(TextureRegion region,
float[] vertices)
Sets polygon with repeating texture region, the size of repeating grid is equal to region size
|
void |
setPolygon(TextureRegion region,
float[] vertices,
float density)
Sets polygon with repeating texture region, the size of repeating grid is equal to region size
|
void |
setPosition(float x,
float y) |
public void setPolygon(TextureRegion region, float[] vertices)
region - - region to repeatvertices - - cw vertices of polygonpublic void setPolygon(TextureRegion region, float[] vertices, float density)
region - - region to repeatvertices - - cw vertices of polygondensity - - number of regions per polygon width boundpublic void draw(PolygonSpriteBatch batch)
public void setColor(Color color)
color - - Tint color to be applied to entire polygonpublic void setPosition(float x,
float y)