ParticleEffect. It should be added as AsynchronousAssetLoader to the
AssetManager so it will be able to load the effects. It's important to note that the two classes
ParticleEffectLoadParameter and ParticleEffectSaveParameter should be passed in whenever possible, because when
present the batches settings will be loaded automatically. When the load and save parameters are absent, once the effect will
be created, one will have to set the required batches manually otherwise the ParticleController instances contained
inside the effect will not be able to render themselves.
| Modifier and Type | Class and Description |
|---|---|
| public static class | |
| public static class |
| Modifier and Type | Field and Description |
|---|---|
| protected Array |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private <T> T | |
| public Array | getDependencies(String fileName, FileHandle file, ParticleEffectLoader.
Implements abstract com. Returns the assets this asset requires to be loaded first. |
| public void | loadAsync(AssetManager manager, String fileName, FileHandle file, ParticleEffectLoader.
Implements abstract com. Loads the non-OpenGL part of the asset and injects any dependencies of the asset into the AssetManager. |
| public ParticleEffect | loadSync(AssetManager manager, String fileName, FileHandle file, ParticleEffectLoader.
Implements abstract com. Loads the OpenGL part of the asset. |
| public void | save(ParticleEffect effect, ParticleEffectLoader.
Saves the effect to the given file contained in the passed in parameter. |
| items | back to summary |
|---|---|
| protected Array<ObjectMap. | |
| ParticleEffectLoader | back to summary |
|---|---|
| public ParticleEffectLoader(FileHandleResolver resolver) | |
| find | back to summary |
|---|---|
| private <T> T find(Array<?> array, Class<T> type) | |
| 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.
| |
| loadAsync | back to summary |
|---|---|
| public void loadAsync(AssetManager manager, String fileName, FileHandle file, ParticleEffectLoader. Implements abstract com. Doc from com. Loads the non-OpenGL part of the asset and injects any dependencies of the asset into the AssetManager.
| |
| loadSync | back to summary |
|---|---|
| public ParticleEffect loadSync(AssetManager manager, String fileName, FileHandle file, ParticleEffectLoader. Implements abstract com. Doc from com. Loads the OpenGL part of the asset.
| |
| save | back to summary |
|---|---|
| public void save(ParticleEffect effect, ParticleEffectLoader. Saves the effect to the given file contained in the passed in parameter. | |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv Array |
| Access | Constructor and Description |
|---|---|
| public |
| batches | back to summary |
|---|---|
| pack-priv Array<ParticleBatch<?>> batches | |
| ParticleEffectLoadParameter | back to summary |
|---|---|
| public ParticleEffectLoadParameter(Array<ParticleBatch<?>> batches) | |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv Array | batches
Optional parameters, but should be present to correctly load the settings |
| pack-priv FileHandle | file
Required parameters |
| pack-priv JsonWriter. | |
| pack-priv AssetManager | |
| pack-priv boolean |
| Access | Constructor and Description |
|---|---|
| public | |
| public | ParticleEffectSaveParameter(FileHandle file, AssetManager manager, Array<ParticleBatch<?>> batches, JsonWriter.
|
| batches | back to summary |
|---|---|
| pack-priv Array<ParticleBatch<?>> batches Optional parameters, but should be present to correctly load the settings | |
| file | back to summary |
|---|---|
| pack-priv FileHandle file Required parameters | |
| jsonOutputType | back to summary |
|---|---|
| pack-priv JsonWriter. | |
| manager | back to summary |
|---|---|
| pack-priv AssetManager manager | |
| prettyPrint | back to summary |
|---|---|
| pack-priv boolean prettyPrint | |
| ParticleEffectSaveParameter | back to summary |
|---|---|
| public ParticleEffectSaveParameter(FileHandle file, AssetManager manager, Array<ParticleBatch<?>> batches) | |
| ParticleEffectSaveParameter | back to summary |
|---|---|
| public ParticleEffectSaveParameter(FileHandle file, AssetManager manager, Array<ParticleBatch<?>> batches, JsonWriter. | |