Class ParticleControllerRenderer<D extends ParticleControllerRenderData,T extends ParticleBatch<D>>
- java.lang.Object
-
- com.badlogic.gdx.graphics.g3d.particles.ParticleControllerComponent
-
- com.badlogic.gdx.graphics.g3d.particles.renderers.ParticleControllerRenderer<D,T>
-
- All Implemented Interfaces:
ResourceData.Configurable,Disposable,Json.Serializable
- Direct Known Subclasses:
BillboardRenderer,ModelInstanceRenderer,ParticleControllerControllerRenderer,PointSpriteRenderer
public abstract class ParticleControllerRenderer<D extends ParticleControllerRenderData,T extends ParticleBatch<D>> extends ParticleControllerComponent
It's aParticleControllerComponentwhich determines how the particles are rendered. It's the base class of every particle renderer.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedParticleControllerRenderer()protectedParticleControllerRenderer(D renderData)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract booleanisCompatible(ParticleBatch<?> batch)voidset(ParticleController particleController)booleansetBatch(ParticleBatch<?> batch)voidupdate()Called to execute the component behavior.-
Methods inherited from class com.badlogic.gdx.graphics.g3d.particles.ParticleControllerComponent
activateParticles, allocateChannels, copy, dispose, end, init, killParticles, load, read, save, start, write
-
-
-
-
Field Detail
-
batch
protected T extends ParticleBatch<D> batch
-
renderData
protected D extends ParticleControllerRenderData renderData
-
-
Constructor Detail
-
ParticleControllerRenderer
protected ParticleControllerRenderer()
-
ParticleControllerRenderer
protected ParticleControllerRenderer(D renderData)
-
-
Method Detail
-
update
public void update()
Description copied from class:ParticleControllerComponentCalled to execute the component behavior.- Overrides:
updatein classParticleControllerComponent
-
setBatch
public boolean setBatch(ParticleBatch<?> batch)
-
isCompatible
public abstract boolean isCompatible(ParticleBatch<?> batch)
-
set
public void set(ParticleController particleController)
- Overrides:
setin classParticleControllerComponent
-
-