public class LibgdxTextureAtlas extends java.lang.Object implements TextureAtlas
Modifier and Type | Field and Description |
---|---|
org.mini2Dx.gdx.utils.Array<TextureAtlasRegion> |
regions |
LibgdxTextureAtlasWrapper |
textureAtlas |
Constructor and Description |
---|
LibgdxTextureAtlas(FileHandle packFile,
FileHandle imagesDir,
boolean flip) |
Modifier and Type | Method and Description |
---|---|
void |
dispose() |
TextureAtlasRegion |
findRegion(java.lang.String name)
Returns the first region found with the specified name.
|
TextureAtlasRegion |
findRegion(java.lang.String name,
int index)
Returns the first region found with the specified name and index.
|
org.mini2Dx.gdx.utils.Array<TextureAtlasRegion> |
findRegions(java.lang.String name)
Returns all regions with the specified name, ordered by smallest to largest index.
|
org.mini2Dx.gdx.utils.Array<TextureAtlasRegion> |
getRegions()
Returns all regions in the atlas.
|
public LibgdxTextureAtlasWrapper textureAtlas
public org.mini2Dx.gdx.utils.Array<TextureAtlasRegion> regions
public LibgdxTextureAtlas(FileHandle packFile, FileHandle imagesDir, boolean flip)
public org.mini2Dx.gdx.utils.Array<TextureAtlasRegion> getRegions()
TextureAtlas
getRegions
in interface TextureAtlas
public TextureAtlasRegion findRegion(java.lang.String name)
TextureAtlas
findRegion
in interface TextureAtlas
public TextureAtlasRegion findRegion(java.lang.String name, int index)
TextureAtlas
findRegion
in interface TextureAtlas
public org.mini2Dx.gdx.utils.Array<TextureAtlasRegion> findRegions(java.lang.String name)
TextureAtlas
findRegions
in interface TextureAtlas
public void dispose()
dispose
in interface org.mini2Dx.gdx.utils.Disposable