public class AnimatedDrawable
extends com.badlogic.gdx.scenes.scene2d.utils.BaseDrawable
| Constructor and Description |
|---|
AnimatedDrawable(com.badlogic.gdx.graphics.g2d.Animation animation)
Constructs the object.
|
| Modifier and Type | Method and Description |
|---|---|
void |
draw(com.badlogic.gdx.graphics.g2d.Batch batch,
float x,
float y,
float width,
float height)
Draes the gif
|
public AnimatedDrawable(com.badlogic.gdx.graphics.g2d.Animation animation)
animation - The animationpublic void draw(com.badlogic.gdx.graphics.g2d.Batch batch,
float x,
float y,
float width,
float height)
draw in interface com.badlogic.gdx.scenes.scene2d.utils.Drawabledraw in class com.badlogic.gdx.scenes.scene2d.utils.BaseDrawablebatch - The batchx - x positiony - y positionwidth - The widthheight - The height