T - The resulting type that this loader will loadpublic interface AssetLoader<T>
AssetManager| Modifier and Type | Method and Description |
|---|---|
org.mini2Dx.gdx.utils.Array<AssetDescriptor> |
getDependencies(AssetDescriptor<T> assetDescriptor,
AsyncLoadingCache asyncLoadingCache)
Returns an
Array of assets that the requested asset depends on |
boolean |
loadOnGameThread(AssetManager assetManager,
AssetDescriptor<T> assetDescriptor,
AsyncLoadingCache asyncLoadingCache,
AssetLoaderResult<T> resultHolder)
Loads an asset on the main game thread
|
boolean loadOnGameThread(AssetManager assetManager, AssetDescriptor<T> assetDescriptor, AsyncLoadingCache asyncLoadingCache, AssetLoaderResult<T> resultHolder)
assetManager - The AssetManager executing the loadingassetDescriptor - A descriptor of the asset to be loadedasyncLoadingCache - Stores values loaded on other threadsresultHolder - Stores the resulting objectorg.mini2Dx.gdx.utils.Array<AssetDescriptor> getDependencies(AssetDescriptor<T> assetDescriptor, AsyncLoadingCache asyncLoadingCache)
Array of assets that the requested asset depends onassetDescriptor - A descriptor of the asset to be loadedasyncLoadingCache - Stores values loaded on other threadsArray or null if there's no dependencies