T - P - public abstract class AsynchronousAssetLoader<T,P extends AssetLoaderParameters<T>> extends AssetLoader<T,P>
AssetLoader instances. Such loaders try to load parts of an OpenGL resource, like the
Pixmap, on a separate thread to then load the actual resource on the thread the OpenGL context is active on.| Constructor and Description |
|---|
AsynchronousAssetLoader(FileHandleResolver resolver) |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
loadAsync(AssetManager manager,
java.lang.String fileName,
P parameter)
Loads the non-OpenGL part of the asset and injects any dependencies of the asset into the AssetManager.
|
abstract T |
loadSync(AssetManager manager,
java.lang.String fileName,
P parameter)
Loads th
|
getDependencies, resolvepublic AsynchronousAssetLoader(FileHandleResolver resolver)
public abstract void loadAsync(AssetManager manager, java.lang.String fileName, P parameter)
manager - fileName - the name of the asset to loadparameter - the parameters to use for loading the assetpublic abstract T loadSync(AssetManager manager, java.lang.String fileName, P parameter)
manager - fileName - parameter -