AssetLoader to load ParticleEffect instances. Passing a 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.
| Modifier and Type | Class and Description |
|---|---|
| public static class | ParticleEffectLoader.
Parameter to be passed to |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public Array | getDependencies(String fileName, FileHandle file, ParticleEffectLoader.
Implements abstract com. Returns the assets this asset requires to be loaded first. |
| public ParticleEffect | load(AssetManager am, String fileName, FileHandle file, ParticleEffectLoader.
Implements abstract com.
|
| ParticleEffectLoader | back to summary |
|---|---|
| public ParticleEffectLoader(FileHandleResolver resolver) | |
| getDependencies | back to summary |
|---|---|
| public Array Implements abstract com. Doc from com. Returns the assets this asset requires to be loaded first. This method may be called on a thread other than the GL thread.
| |
| load | back to summary |
|---|---|
| public ParticleEffect load(AssetManager am, String fileName, FileHandle file, ParticleEffectLoader. Implements abstract com.
| |
AssetManager#load(String, Class, AssetLoaderParameters) if additional configuration is
necessary for the ParticleEffect.
| Modifier and Type | Field and Description |
|---|---|
| public String | atlasFile
Atlas file name. |
| public String | atlasPrefix
Optional prefix to image names |
| public FileHandle | imagesDir
Image directory. |
| Access | Constructor and Description |
|---|---|
| public |
| atlasFile | back to summary |
|---|---|
| public String atlasFile Atlas file name. | |
| atlasPrefix | back to summary |
|---|---|
| public String atlasPrefix Optional prefix to image names | |
| imagesDir | back to summary |
|---|---|
| public FileHandle imagesDir Image directory. | |
| ParticleEffectParameter | back to summary |
|---|---|
| public ParticleEffectParameter() | |