Package arc.assets.loaders
Class CustomLoader
java.lang.Object
arc.assets.loaders.AssetLoader<T,P>
arc.assets.loaders.AsynchronousAssetLoader
arc.assets.loaders.CustomLoader
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetDependencies
(String fileName, Fi file, AssetLoaderParameters parameter) Returns the assets this asset requires to be loaded first.loadSync
(AssetManager manager, String fileName, Fi file, AssetLoaderParameters parameter) Loads the OpenGL part of the asset.Methods inherited from class arc.assets.loaders.AsynchronousAssetLoader
loadAsync
Methods inherited from class arc.assets.loaders.AssetLoader
resolve
-
Field Details
-
loaded
-
-
Constructor Details
-
CustomLoader
public CustomLoader()
-
-
Method Details
-
loadSync
public Object loadSync(AssetManager manager, String fileName, Fi file, AssetLoaderParameters parameter) Description copied from class:AsynchronousAssetLoader
Loads the OpenGL part of the asset.- Specified by:
loadSync
in classAsynchronousAssetLoader
file
- the resolved file to load
-
getDependencies
public Seq<AssetDescriptor> getDependencies(String fileName, Fi file, AssetLoaderParameters 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
- Parameters:
fileName
- name of the asset to loadfile
- 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.
-