public class SpriteDrawable extends BaseDrawable
Sprite.| Constructor and Description |
|---|
SpriteDrawable()
Creates an unitialized SpriteDrawable.
|
SpriteDrawable(Sprite sprite) |
SpriteDrawable(SpriteDrawable 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.
|
Sprite |
getSprite() |
void |
setSprite(Sprite sprite) |
getBottomHeight, getLeftWidth, getMinHeight, getMinWidth, getRightWidth, getTopHeight, setBottomHeight, setLeftWidth, setMinHeight, setMinWidth, setRightWidth, setTopHeightpublic SpriteDrawable()
public SpriteDrawable(Sprite sprite)
public SpriteDrawable(SpriteDrawable 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 setSprite(Sprite sprite)
public Sprite getSprite()