| Modifier and Type | Class and Description |
|---|---|
| public static class | TextureAtlas.
Describes the region of a packed image and provides information about the original image before it was packed. |
| public static class | TextureAtlas.
A sprite that, if whitespace was stripped from the region when it was packed, is automatically positioned as if whitespace had not been stripped. |
| public static class |
| Modifier and Type | Field and Description |
|---|---|
| private final Array | |
| private final ObjectSet |
| Access | Constructor and Description |
|---|---|
| public | |
| public | TextureAtlas(String internalPackFile)
Loads the specified pack file using |
| public | TextureAtlas(FileHandle packFile)
Loads the specified pack file, using the parent directory of the pack file to find the page images. |
| public | TextureAtlas(FileHandle packFile, boolean
If true, all regions loaded will be flipped for use with a perspective where 0,0 is the upper left corner. flip)
|
| public | |
| public | TextureAtlas(FileHandle packFile, FileHandle imagesDir, boolean
If true, all regions loaded will be flipped for use with a perspective where 0,0 is the upper left corner. flip)
|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public TextureAtlas. | |
| public TextureAtlas. | |
| public NinePatch | |
| public Sprite | |
| public Sprite | createSprite(String name, int index)
Returns the first region found with the specified name and index as a sprite. |
| public Array | |
| public Array | createSprites(String name)
Returns all regions with the specified name as sprites, ordered by smallest to largest |
| public void | dispose()
Implements com. Releases all resources associated with this TextureAtlas instance. |
| public TextureAtlas. | |
| public TextureAtlas. | |
| public Array | findRegions(String name)
Returns all regions with the specified name, ordered by smallest to largest |
| public Array | |
| public ObjectSet | |
| public void | load(TextureAtlas.
Adds the textures and regions from the specified texture atlas data. |
| private Sprite |