public class AnimatedTexture
Stores a number of frames (each a TextureRegion) that make up an animation.
| Modifier and Type | Class and Description |
|---|---|
static class |
AnimatedTexture.Companion |
| Modifier and Type | Field and Description |
|---|---|
static AnimatedTexture.Companion |
Companion |
| Constructor and Description |
|---|
AnimatedTexture(float delay,
com.badlogic.gdx.graphics.g2d.TextureRegion[] tex,
com.badlogic.gdx.graphics.g2d.Animation.PlayMode mode)
Stores a number of frames (each a TextureRegion) that make up an animation.
|
AnimatedTexture(float delay,
com.badlogic.gdx.graphics.g2d.TextureRegion[] t,
kotlin.ranges.IntRange p,
com.badlogic.gdx.graphics.g2d.Animation.PlayMode mode) |
AnimatedTexture(float delay,
java.lang.String file,
int width,
int height,
kotlin.ranges.IntRange p,
com.badlogic.gdx.graphics.g2d.Animation.PlayMode mode) |
AnimatedTexture(float delay,
SpriteSheet sheet,
java.lang.String name,
com.badlogic.gdx.graphics.g2d.Animation.PlayMode mode) |
| Modifier and Type | Method and Description |
|---|---|
float |
getDelay()
Time to display each frame in seconds
|
com.badlogic.gdx.graphics.g2d.Animation.PlayMode |
getMode()
Whether to loop at the end of the animation.
|
public static AnimatedTexture.Companion Companion
public AnimatedTexture(float delay,
com.badlogic.gdx.graphics.g2d.TextureRegion[] tex,
com.badlogic.gdx.graphics.g2d.Animation.PlayMode mode)
Stores a number of frames (each a TextureRegion) that make up an animation.
delay - Time to display each frame in secondstex - The TextureRegionsmode - Whether to loop at the end of the animation.delay - Time to display each frame in secondstex - The TextureRegionsmode - Whether to loop at the end of the animation.public AnimatedTexture(float delay,
com.badlogic.gdx.graphics.g2d.TextureRegion[] t,
kotlin.ranges.IntRange p,
com.badlogic.gdx.graphics.g2d.Animation.PlayMode mode)
public AnimatedTexture(float delay,
java.lang.String file,
int width,
int height,
kotlin.ranges.IntRange p,
com.badlogic.gdx.graphics.g2d.Animation.PlayMode mode)
public AnimatedTexture(float delay,
SpriteSheet sheet,
java.lang.String name,
com.badlogic.gdx.graphics.g2d.Animation.PlayMode mode)