public class TiledDrawable extends TextureRegionDrawable
TextureRegion
repeatedly to fill the area, instead of stretching it.Constructor and Description |
---|
TiledDrawable() |
TiledDrawable(TextureRegion region) |
TiledDrawable(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.
|
draw, getRegion, setRegion
getBottomHeight, getLeftWidth, getMinHeight, getMinWidth, getName, getRightWidth, getTopHeight, setBottomHeight, setLeftWidth, setMinHeight, setMinWidth, setName, setRightWidth, setTopHeight, toString
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
getBottomHeight, getLeftWidth, getMinHeight, getMinWidth, getRightWidth, getTopHeight, setBottomHeight, setLeftWidth, setMinHeight, setMinWidth, setRightWidth, setTopHeight
public TiledDrawable()
public TiledDrawable(TextureRegion region)
public TiledDrawable(TextureRegionDrawable drawable)
public void draw(Batch batch, float x, float y, float width, float height)
Drawable
Batch.getColor()
, possibly by mixing
its own color.draw
in interface Drawable
draw
in class TextureRegionDrawable
Copyright © 2014. All rights reserved.