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 aParticleControllerComponent
which determines how the particles are rendered. It's the base class of every particle renderer.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
ParticleControllerRenderer()
protected
ParticleControllerRenderer(D renderData)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract boolean
isCompatible(ParticleBatch<?> batch)
void
set(ParticleController particleController)
boolean
setBatch(ParticleBatch<?> batch)
void
update()
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:ParticleControllerComponent
Called to execute the component behavior.- Overrides:
update
in classParticleControllerComponent
-
setBatch
public boolean setBatch(ParticleBatch<?> batch)
-
isCompatible
public abstract boolean isCompatible(ParticleBatch<?> batch)
-
set
public void set(ParticleController particleController)
- Overrides:
set
in classParticleControllerComponent
-
-