com.badlogic.gdx.assets.loaders
Class ParticleEffectLoader
java.lang.Object
com.badlogic.gdx.assets.loaders.AssetLoader<T,P>
com.badlogic.gdx.assets.loaders.SynchronousAssetLoader<ParticleEffect,ParticleEffectLoader.ParticleEffectParameter>
com.badlogic.gdx.assets.loaders.ParticleEffectLoader
public class ParticleEffectLoader
- extends SynchronousAssetLoader<ParticleEffect,ParticleEffectLoader.ParticleEffectParameter>
AssetLoader
to load ParticleEffect
instances. Passing a ParticleEffectLoader.ParticleEffectParameter
to
AssetManager.load(String, Class, AssetLoaderParameters)
allows to specify an atlas file or an image directory to be
used for the effect's images. Per default images are loaded from the directory in which the effect file is found.
ParticleEffectLoader
public ParticleEffectLoader(FileHandleResolver resolver)
load
public ParticleEffect load(AssetManager am,
String fileName,
FileHandle file,
ParticleEffectLoader.ParticleEffectParameter param)
- Specified by:
load
in class SynchronousAssetLoader<ParticleEffect,ParticleEffectLoader.ParticleEffectParameter>
getDependencies
public Array<AssetDescriptor> getDependencies(String fileName,
FileHandle file,
ParticleEffectLoader.ParticleEffectParameter param)
- Description copied from class:
AssetLoader
- Returns the assets this asset requires to be loaded first. This method may be called on a thread other than the GL thread.
- Specified by:
getDependencies
in class AssetLoader<ParticleEffect,ParticleEffectLoader.ParticleEffectParameter>
- Parameters:
fileName
- name of the asset to loadfile
- the resolved file to loadparam
- parameters for loading the asset
- Returns:
- other assets that the asset depends on and need to be loaded first or null if there are no dependencies.
Copyright © 2013. All Rights Reserved.