public class SkinLoader extends AsynchronousAssetLoader<Skin,SkinLoader.SkinParameter>
AssetLoader for Skin instances. All Texture and BitmapFont instances will be loaded as
dependencies. Passing a SkinLoader.SkinParameter allows one to specify the exact name of the texture associated with the skin.
Otherwise the skin texture is looked up just as with a call to Skin.Skin(com.badlogic.gdx.files.FileHandle).| Modifier and Type | Class and Description |
|---|---|
static class |
SkinLoader.SkinParameter |
| Constructor and Description |
|---|
SkinLoader(FileHandleResolver resolver) |
| Modifier and Type | Method and Description |
|---|---|
Array<AssetDescriptor> |
getDependencies(java.lang.String fileName,
SkinLoader.SkinParameter parameter) |
void |
loadAsync(AssetManager manager,
java.lang.String fileName,
SkinLoader.SkinParameter parameter)
Loads the non-OpenGL part of the asset and injects any dependencies of the asset into the AssetManager.
|
Skin |
loadSync(AssetManager manager,
java.lang.String fileName,
SkinLoader.SkinParameter parameter)
Loads th
|
resolvepublic SkinLoader(FileHandleResolver resolver)
public Array<AssetDescriptor> getDependencies(java.lang.String fileName, SkinLoader.SkinParameter parameter)
getDependencies in class AssetLoader<Skin,SkinLoader.SkinParameter>fileName - name of the asset to loadparameter - parameters for loading the assetpublic void loadAsync(AssetManager manager, java.lang.String fileName, SkinLoader.SkinParameter parameter)
AsynchronousAssetLoaderloadAsync in class AsynchronousAssetLoader<Skin,SkinLoader.SkinParameter>fileName - the name of the asset to loadparameter - the parameters to use for loading the assetpublic Skin loadSync(AssetManager manager, java.lang.String fileName, SkinLoader.SkinParameter parameter)
AsynchronousAssetLoaderloadSync in class AsynchronousAssetLoader<Skin,SkinLoader.SkinParameter>