public class PixmapLoader extends java.lang.Object implements AssetLoader<Pixmap>
| Constructor and Description |
|---|
PixmapLoader() |
| Modifier and Type | Method and Description |
|---|---|
org.mini2Dx.gdx.utils.Array<AssetDescriptor> |
getDependencies(AssetDescriptor assetDescriptor,
AsyncLoadingCache asyncLoadingCache)
Returns an
Array of assets that the requested asset depends on |
boolean |
loadOnGameThread(AssetManager assetManager,
AssetDescriptor<Pixmap> assetDescriptor,
AsyncLoadingCache asyncLoadingCache,
AssetLoaderResult<Pixmap> resultHolder)
Loads an asset on the main game thread
|
public boolean loadOnGameThread(AssetManager assetManager, AssetDescriptor<Pixmap> assetDescriptor, AsyncLoadingCache asyncLoadingCache, AssetLoaderResult<Pixmap> resultHolder)
AssetLoaderloadOnGameThread in interface AssetLoader<Pixmap>assetManager - The AssetManager executing the loadingassetDescriptor - A descriptor of the asset to be loadedasyncLoadingCache - Stores values loaded on other threadsresultHolder - Stores the resulting objectpublic org.mini2Dx.gdx.utils.Array<AssetDescriptor> getDependencies(AssetDescriptor assetDescriptor, AsyncLoadingCache asyncLoadingCache)
AssetLoaderArray of assets that the requested asset depends ongetDependencies in interface AssetLoader<Pixmap>assetDescriptor - A descriptor of the asset to be loadedasyncLoadingCache - Stores values loaded on other threadsArray or null if there's no dependencies