public class TextureRegionDrawable extends BaseDrawable implements TransformDrawable
TextureRegion.| Constructor and Description |
|---|
TextureRegionDrawable()
Creates an uninitialized TextureRegionDrawable.
|
TextureRegionDrawable(TextureRegion region) |
TextureRegionDrawable(TextureRegionDrawable drawable) |
| Modifier and Type | Method and Description |
|---|---|
void |
draw(Batch batch,
float x,
float y,
float width,
float height)
Draws this drawable at the specified bounds.
|
void |
draw(Batch batch,
float x,
float y,
float originX,
float originY,
float width,
float height,
float scaleX,
float scaleY,
float rotation) |
TextureRegion |
getRegion() |
void |
setRegion(TextureRegion region) |
Drawable |
tint(Color tint)
Creates a new drawable that renders the same as this drawable tinted the specified color.
|
getBottomHeight, getLeftWidth, getMinHeight, getMinWidth, getName, getRightWidth, getTopHeight, setBottomHeight, setLeftWidth, setMinHeight, setMinWidth, setName, setRightWidth, setTopHeight, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetBottomHeight, getLeftWidth, getMinHeight, getMinWidth, getRightWidth, getTopHeight, setBottomHeight, setLeftWidth, setMinHeight, setMinWidth, setRightWidth, setTopHeightpublic TextureRegionDrawable()
public TextureRegionDrawable(TextureRegion region)
public TextureRegionDrawable(TextureRegionDrawable drawable)
public void draw(Batch batch, float x, float y, float width, float height)
DrawableBatch.getColor(), possibly by mixing
its own color.draw in interface Drawabledraw in class BaseDrawablepublic void draw(Batch batch, float x, float y, float originX, float originY, float width, float height, float scaleX, float scaleY, float rotation)
draw in interface TransformDrawablepublic void setRegion(TextureRegion region)
public TextureRegion getRegion()