public class TextureRegionDrawable extends BaseDrawable
TextureRegion.| Constructor and Description |
|---|
TextureRegionDrawable()
Creates an unitialized TextureRegionDrawable.
|
TextureRegionDrawable(TextureRegion region) |
TextureRegionDrawable(TextureRegionDrawable drawable) |
| Modifier and Type | Method and Description |
|---|---|
void |
draw(SpriteBatch batch,
float x,
float y,
float width,
float height)
Draws this drawable at the specified bounds.
|
TextureRegion |
getRegion() |
void |
setRegion(TextureRegion region) |
getBottomHeight, getLeftWidth, getMinHeight, getMinWidth, getRightWidth, getTopHeight, setBottomHeight, setLeftWidth, setMinHeight, setMinWidth, setRightWidth, setTopHeightpublic TextureRegionDrawable()
public TextureRegionDrawable(TextureRegion region)
public TextureRegionDrawable(TextureRegionDrawable drawable)
public void draw(SpriteBatch batch, float x, float y, float width, float height)
DrawableSpriteBatch.getColor(), possibly by
mixing its own color.draw in interface Drawabledraw in class BaseDrawablepublic void setRegion(TextureRegion region)
public TextureRegion getRegion()