Sprite.
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | draw(Batch batch, float x, float y, float width, float height)
Overrides com. Implements com. Draws this drawable at the specified bounds. |
| public void | draw(Batch batch, float x, float y, float originX, float originY, float width, float height, float scaleX, float scaleY, float rotation)
Implements com.
|
| public Sprite | |
| public void | |
| public SpriteDrawable |
| sprite | back to summary |
|---|---|
| private Sprite sprite | |
| SpriteDrawable | back to summary |
|---|---|
| public SpriteDrawable() Creates an uninitialized SpriteDrawable. The sprite must be set before use. | |
| SpriteDrawable | back to summary |
|---|---|
| public SpriteDrawable(Sprite sprite) | |
| SpriteDrawable | back to summary |
|---|---|
| public SpriteDrawable(SpriteDrawable drawable) | |
| draw | back to summary |
|---|---|
| public void draw(Batch batch, float x, float y, float width, float height) Overrides com. Implements com. Doc from com. Draws this drawable at the specified bounds. The drawable should be tinted with | |
| draw | back to summary |
|---|---|
| public void draw(Batch batch, float x, float y, float originX, float originY, float width, float height, float scaleX, float scaleY, float rotation) Implements com. | |
| getSprite | back to summary |
|---|---|
| public Sprite getSprite() | |
| setSprite | back to summary |
|---|---|
| public void setSprite(Sprite sprite) | |
| tint | back to summary |
|---|---|
| public SpriteDrawable tint(Color tint) Creates a new drawable that renders the same as this drawable tinted the specified color. | |