public abstract class TextureAtlas extends Object
| Modifier and Type | Class and Description |
|---|---|
class |
TextureAtlas.Animation |
| Modifier and Type | Field and Description |
|---|---|
protected com.badlogic.gdx.utils.ObjectMap<String,TextureAtlas.Animation> |
animations |
protected float |
edgeCoordOffset |
MaterialTileMapping |
materialTileMapping |
static float |
TEXCOORD_EDGE_BLEED_OFFSET |
com.badlogic.gdx.graphics.Texture |
texture |
protected com.badlogic.gdx.utils.Array<com.badlogic.gdx.graphics.g2d.TextureRegion> |
tiles |
| Constructor and Description |
|---|
TextureAtlas(com.badlogic.gdx.graphics.Texture texture,
float edgeCoordOffset) |
| Modifier and Type | Method and Description |
|---|---|
void |
addAnimation(String name,
int destTileIndex,
int start,
int stop,
float delay,
boolean loop) |
int |
count() |
com.badlogic.gdx.graphics.g2d.TextureRegion |
get(int index) |
com.badlogic.gdx.utils.ObjectMap.Entries<String,TextureAtlas.Animation> |
getAnimations() |
boolean |
hasAnimations() |
static void |
scaleTexCoord(com.badlogic.gdx.math.Vector2 texCoord,
float srcMin,
float srcMax,
com.badlogic.gdx.graphics.g2d.TextureRegion tile,
com.badlogic.gdx.math.Vector2 out) |
static void |
scaleTexCoord(com.badlogic.gdx.math.Vector2 texCoord,
com.badlogic.gdx.graphics.g2d.TextureRegion tile,
com.badlogic.gdx.math.Vector2 out) |
static float |
scaleTexCoordU(float u,
float srcMinU,
float srcMaxU,
com.badlogic.gdx.graphics.g2d.TextureRegion tile) |
static float |
scaleTexCoordU(float u,
com.badlogic.gdx.graphics.g2d.TextureRegion tile) |
static float |
scaleTexCoordV(float v,
float srcMinV,
float srcMaxV,
com.badlogic.gdx.graphics.g2d.TextureRegion tile) |
static float |
scaleTexCoordV(float v,
com.badlogic.gdx.graphics.g2d.TextureRegion tile) |
public static final float TEXCOORD_EDGE_BLEED_OFFSET
public final com.badlogic.gdx.graphics.Texture texture
public final MaterialTileMapping materialTileMapping
protected final float edgeCoordOffset
protected com.badlogic.gdx.utils.Array<com.badlogic.gdx.graphics.g2d.TextureRegion> tiles
protected com.badlogic.gdx.utils.ObjectMap<String,TextureAtlas.Animation> animations
public TextureAtlas(com.badlogic.gdx.graphics.Texture texture,
float edgeCoordOffset)
public com.badlogic.gdx.graphics.g2d.TextureRegion get(int index)
public int count()
public boolean hasAnimations()
public com.badlogic.gdx.utils.ObjectMap.Entries<String,TextureAtlas.Animation> getAnimations()
public void addAnimation(String name, int destTileIndex, int start, int stop, float delay, boolean loop)
public static void scaleTexCoord(com.badlogic.gdx.math.Vector2 texCoord,
com.badlogic.gdx.graphics.g2d.TextureRegion tile,
com.badlogic.gdx.math.Vector2 out)
public static void scaleTexCoord(com.badlogic.gdx.math.Vector2 texCoord,
float srcMin,
float srcMax,
com.badlogic.gdx.graphics.g2d.TextureRegion tile,
com.badlogic.gdx.math.Vector2 out)
public static float scaleTexCoordU(float u,
com.badlogic.gdx.graphics.g2d.TextureRegion tile)
public static float scaleTexCoordU(float u,
float srcMinU,
float srcMaxU,
com.badlogic.gdx.graphics.g2d.TextureRegion tile)
public static float scaleTexCoordV(float v,
com.badlogic.gdx.graphics.g2d.TextureRegion tile)
public static float scaleTexCoordV(float v,
float srcMinV,
float srcMaxV,
com.badlogic.gdx.graphics.g2d.TextureRegion tile)
Copyright © 2022. All rights reserved.