public class TextureAtlasLoader extends SynchronousAssetLoader<TextureAtlas,TextureAtlasLoader.TextureAtlasParameter>
AssetLoader to load TextureAtlas instances. Passing a TextureAtlasLoader.TextureAtlasParameter to
AssetManager.load(String, Class, AssetLoaderParameters) allows to specify whether the atlas regions should be flipped
on the y-axis or not.| Modifier and Type | Class and Description |
|---|---|
static class |
TextureAtlasLoader.TextureAtlasParameter |
| Constructor and Description |
|---|
TextureAtlasLoader(FileHandleResolver resolver) |
| Modifier and Type | Method and Description |
|---|---|
Array<AssetDescriptor> |
getDependencies(java.lang.String fileName,
TextureAtlasLoader.TextureAtlasParameter parameter) |
TextureAtlas |
load(AssetManager assetManager,
java.lang.String fileName,
TextureAtlasLoader.TextureAtlasParameter parameter) |
resolvepublic TextureAtlasLoader(FileHandleResolver resolver)
public TextureAtlas load(AssetManager assetManager, java.lang.String fileName, TextureAtlasLoader.TextureAtlasParameter parameter)
load in class SynchronousAssetLoader<TextureAtlas,TextureAtlasLoader.TextureAtlasParameter>public Array<AssetDescriptor> getDependencies(java.lang.String fileName, TextureAtlasLoader.TextureAtlasParameter parameter)
getDependencies in class AssetLoader<TextureAtlas,TextureAtlasLoader.TextureAtlasParameter>fileName - name of the asset to loadparameter - parameters for loading the asset