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.
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public abstract void | loadAsync(AssetManager manager, String
the name of the asset to load fileName, FileHandle the resolved file to load file, P the parameters to use for loading the asset parameter)Loads the non-OpenGL part of the asset and injects any dependencies of the asset into the AssetManager. |
| public abstract T | loadSync(AssetManager manager, String fileName, FileHandle
the resolved file to load file, P parameter)Loads the OpenGL part of the asset. |
| public void | unloadAsync(AssetManager manager, String fileName, FileHandle file, P parameter)
Called if this task is unloaded before |
| AsynchronousAssetLoader | back to summary |
|---|---|
| public AsynchronousAssetLoader(FileHandleResolver resolver) | |
| loadAsync | back to summary |
|---|---|
| public abstract void loadAsync(AssetManager manager, String fileName, FileHandle file, P parameter) Loads the non-OpenGL part of the asset and injects any dependencies of the asset into the AssetManager.
| |
| loadSync | back to summary |
|---|---|
| public abstract T loadSync(AssetManager manager, String fileName, FileHandle file, P parameter) Loads the OpenGL part of the asset.
| |
| unloadAsync | back to summary |
|---|---|
| public void unloadAsync(AssetManager manager, String fileName, FileHandle file, P parameter) Called if this task is unloaded before
The default implementation does nothing. Subclasses should release any resources acquired in
| |