Package arc.assets.loaders
Class TextureAtlasLoader
java.lang.Object
arc.assets.loaders.AssetLoader<T,P>
arc.assets.loaders.SynchronousAssetLoader<TextureAtlas,TextureAtlasLoader.TextureAtlasParameter>
arc.assets.loaders.TextureAtlasLoader
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.-
Nested Class Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetDependencies
(String fileName, Fi atlasFile, TextureAtlasLoader.TextureAtlasParameter parameter) Returns the assets this asset requires to be loaded first.load
(AssetManager assetManager, String fileName, Fi file, TextureAtlasLoader.TextureAtlasParameter parameter) Methods inherited from class arc.assets.loaders.AssetLoader
resolve
-
Constructor Details
-
TextureAtlasLoader
-
-
Method Details
-
load
public TextureAtlas load(AssetManager assetManager, String fileName, Fi file, TextureAtlasLoader.TextureAtlasParameter parameter) - Specified by:
load
in classSynchronousAssetLoader<TextureAtlas,
TextureAtlasLoader.TextureAtlasParameter>
-
getDependencies
public Seq<AssetDescriptor> getDependencies(String fileName, Fi atlasFile, TextureAtlasLoader.TextureAtlasParameter parameter) Description copied from class:AssetLoader
Returns the assets this asset requires to be loaded first. This method may be called on a thread other than the GL thread.- Specified by:
getDependencies
in classAssetLoader<TextureAtlas,
TextureAtlasLoader.TextureAtlasParameter> - Parameters:
fileName
- name of the asset to loadatlasFile
- the resolved file to loadparameter
- parameters for loading the asset- Returns:
- other assets that the asset depends on and need to be loaded first or null if there are no dependencies.
-