Example usage for Java com.badlogic.gdx.graphics.g2d TextureAtlas fields, constructors, methods, implement or subclass
The text is from its open source code.
TextureAtlas(String internalPackFile) Loads the specified pack file using FileType#Internal , using the parent directory of the pack file to find the page images. | |
TextureAtlas(FileHandle packFile) Loads the specified pack file, using the parent directory of the pack file to find the page images. | |
TextureAtlas(TextureAtlasData data) | |
TextureAtlas() Creates an empty atlas to which regions can be added. | |
TextureAtlas(FileHandle packFile, boolean flip) | |
TextureAtlas(FileHandle packFile, FileHandle imagesDir) | |
TextureAtlas(FileHandle packFile, FileHandle imagesDir, boolean flip) |
AtlasRegion | addRegion(String name, TextureRegion textureRegion) Adds a region to the atlas. |
NinePatch | createPatch(String name) Returns the first region found with the specified name as a NinePatch . |
Sprite | createSprite(String name) Returns the first region found with the specified name as a sprite. |
Array | createSprites(String name) Returns all regions with the specified name as sprites, ordered by smallest to largest AtlasRegion#index index . |
void | dispose() Releases all resources associated with this TextureAtlas instance. |
AtlasRegion | findRegion(String name) Returns the first region found with the specified name. |
AtlasRegion | findRegion(String name, int index) Returns the first region found with the specified name and index. |
Array | findRegions(String name) Returns all regions with the specified name, ordered by smallest to largest AtlasRegion#index index . |
Array | getRegions() Returns all regions in the atlas. |
ObjectSet | getTextures() |