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>
AParticleControllerRendererwhich will render particles asModelInstanceto 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 voidallocateChannels()Called during initialization to allocate additional particles channelsParticleControllerComponentcopy()voidinit()Called once during intializationbooleanisCompatible(ParticleBatch<?> batch)voidupdate()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:ParticleControllerComponentCalled during initialization to allocate additional particles channels- Overrides:
allocateChannelsin classParticleControllerComponent
-
init
public void init()
Description copied from class:ParticleControllerComponentCalled once during intialization- Overrides:
initin classParticleControllerComponent
-
update
public void update()
Description copied from class:ParticleControllerComponentCalled to execute the component behavior.- Overrides:
updatein classParticleControllerRenderer<ModelInstanceControllerRenderData,ModelInstanceParticleBatch>
-
copy
public ParticleControllerComponent copy()
- Specified by:
copyin classParticleControllerComponent
-
isCompatible
public boolean isCompatible(ParticleBatch<?> batch)
- Specified by:
isCompatiblein classParticleControllerRenderer<ModelInstanceControllerRenderData,ModelInstanceParticleBatch>
-
-