public class ShaderLoader extends java.lang.Object implements AssetLoader<Shader>
Constructor and Description |
---|
ShaderLoader() |
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<Shader> assetDescriptor,
AsyncLoadingCache asyncLoadingCache,
AssetLoaderResult<Shader> resultHolder)
Loads an asset on the main game thread
|
public boolean loadOnGameThread(AssetManager assetManager, AssetDescriptor<Shader> assetDescriptor, AsyncLoadingCache asyncLoadingCache, AssetLoaderResult<Shader> resultHolder)
AssetLoader
loadOnGameThread
in interface AssetLoader<Shader>
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)
AssetLoader
Array
of assets that the requested asset depends ongetDependencies
in interface AssetLoader<Shader>
assetDescriptor
- A descriptor of the asset to be loadedasyncLoadingCache
- Stores values loaded on other threadsArray
or null if there's no dependencies