Package | Description |
---|---|
com.badlogic.gdx.graphics.g2d |
Modifier and Type | Method and Description |
---|---|
PolygonRegion |
PolygonSprite.getRegion() |
PolygonRegion |
PolygonRegionLoader.load(AssetManager manager,
java.lang.String fileName,
FileHandle file,
PolygonRegionLoader.PolygonRegionParameters parameter) |
PolygonRegion |
PolygonRegionLoader.load(TextureRegion textureRegion,
FileHandle file)
Loads a PolygonRegion from a PSH (Polygon SHape) file.
|
Modifier and Type | Method and Description |
---|---|
void |
PolygonBatch.draw(PolygonRegion region,
float x,
float y)
Draws a polygon region with the bottom left corner at x,y having the width and height of the region.
|
void |
PolygonSpriteBatch.draw(PolygonRegion region,
float x,
float y) |
void |
PolygonBatch.draw(PolygonRegion region,
float x,
float y,
float width,
float height)
Draws a polygon region with the bottom left corner at x,y and stretching the region to cover the given width and height.
|
void |
PolygonSpriteBatch.draw(PolygonRegion region,
float x,
float y,
float width,
float height) |
void |
PolygonBatch.draw(PolygonRegion region,
float x,
float y,
float originX,
float originY,
float width,
float height,
float scaleX,
float scaleY,
float rotation)
Draws the polygon region with the bottom left corner at x,y and stretching the region to cover the given width and height.
|
void |
PolygonSpriteBatch.draw(PolygonRegion region,
float x,
float y,
float originX,
float originY,
float width,
float height,
float scaleX,
float scaleY,
float rotation) |
void |
PolygonSprite.setRegion(PolygonRegion region) |
Constructor and Description |
---|
PolygonSprite(PolygonRegion region) |