Class ModelInstanceRenderer
- java.lang.Object
-
- com.badlogic.gdx.graphics.g3d.particles.ParticleControllerComponent
-
- com.badlogic.gdx.graphics.g3d.particles.renderers.ParticleControllerRenderer<ModelInstanceControllerRenderData,ModelInstanceParticleBatch>
-
- com.badlogic.gdx.graphics.g3d.particles.renderers.ModelInstanceRenderer
-
- All Implemented Interfaces:
ResourceData.Configurable
,Disposable
,Json.Serializable
public class ModelInstanceRenderer extends ParticleControllerRenderer<ModelInstanceControllerRenderData,ModelInstanceParticleBatch>
AParticleControllerRenderer
which will render particles asModelInstance
to aModelInstanceParticleBatch
.
-
-
Field Summary
-
Fields inherited from class com.badlogic.gdx.graphics.g3d.particles.renderers.ParticleControllerRenderer
batch, renderData
-
-
Constructor Summary
Constructors Constructor Description ModelInstanceRenderer()
ModelInstanceRenderer(ModelInstanceParticleBatch batch)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
allocateChannels()
Called during initialization to allocate additional particles channelsParticleControllerComponent
copy()
void
init()
Called once during intializationboolean
isCompatible(ParticleBatch<?> batch)
void
update()
Called to execute the component behavior.-
Methods inherited from class com.badlogic.gdx.graphics.g3d.particles.renderers.ParticleControllerRenderer
set, setBatch
-
Methods inherited from class com.badlogic.gdx.graphics.g3d.particles.ParticleControllerComponent
activateParticles, dispose, end, killParticles, load, read, save, start, write
-
-
-
-
Constructor Detail
-
ModelInstanceRenderer
public ModelInstanceRenderer()
-
ModelInstanceRenderer
public ModelInstanceRenderer(ModelInstanceParticleBatch batch)
-
-
Method Detail
-
allocateChannels
public void allocateChannels()
Description copied from class:ParticleControllerComponent
Called during initialization to allocate additional particles channels- Overrides:
allocateChannels
in classParticleControllerComponent
-
init
public void init()
Description copied from class:ParticleControllerComponent
Called once during intialization- Overrides:
init
in classParticleControllerComponent
-
update
public void update()
Description copied from class:ParticleControllerComponent
Called to execute the component behavior.- Overrides:
update
in classParticleControllerRenderer<ModelInstanceControllerRenderData,ModelInstanceParticleBatch>
-
copy
public ParticleControllerComponent copy()
- Specified by:
copy
in classParticleControllerComponent
-
isCompatible
public boolean isCompatible(ParticleBatch<?> batch)
- Specified by:
isCompatible
in classParticleControllerRenderer<ModelInstanceControllerRenderData,ModelInstanceParticleBatch>
-
-