APIdia Launch Partner
Top Description Inners Fields Constructors Methods
com.badlogic.gdx.graphics.g3d.particles.influencers

public abstract Class ModelInfluencer

extends Influencer
Class Inheritance
Known Direct Subclasses
com.badlogic.gdx.graphics.g3d.particles.influencers.ModelInfluencer.Single, com.badlogic.gdx.graphics.g3d.particles.influencers.ModelInfluencer.Random
Imports
com.badlogic.gdx.assets.AssetDescriptor, .AssetManager, com.badlogic.gdx.graphics.g3d.Model, .ModelInstance, com.badlogic.gdx.graphics.g3d.particles.ParallelArray.ObjectChannel, .ParticleChannels, .ResourceData, .ResourceData.SaveData, com.badlogic.gdx.utils.Array, .Pool

It's an Influencer which controls which Model will be assigned to the particles as ModelInstance.
Author
Inferno

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class
ModelInfluencer.Random

Assigns a random model of ModelInfluencer#models to the particles.

public static class
ModelInfluencer.Single

Assigns the first model of ModelInfluencer#models to the particles.

Field Summary

Modifier and TypeField and Description
pack-priv ParallelArray.ObjectChannel<ModelInstance>
public Array<Model>

Constructor Summary

AccessConstructor and Description
public
public
public

Method Summary

Modifier and TypeMethod and Description
public void
allocateChannels()

Overrides com.badlogic.gdx.graphics.g3d.particles.ParticleControllerComponent.allocateChannels.

Called during initialization to allocate additional particles channels

public void
public void

Field Detail

modelChannelback to summary
pack-priv ParallelArray.ObjectChannel<ModelInstance> modelChannel
modelsback to summary
public Array<Model> models

Constructor Detail

ModelInfluencerback to summary
public ModelInfluencer()
ModelInfluencerback to summary
public ModelInfluencer(Model... models)
ModelInfluencerback to summary
public ModelInfluencer(ModelInfluencer influencer)

Method Detail

allocateChannelsback to summary
public void allocateChannels()

Overrides com.badlogic.gdx.graphics.g3d.particles.ParticleControllerComponent.allocateChannels.

Doc from com.badlogic.gdx.graphics.g3d.particles.ParticleControllerComponent.allocateChannels.

Called during initialization to allocate additional particles channels

Annotations
@Override
loadback to summary
public void load(AssetManager manager, ResourceData<T> resources)

Overrides com.badlogic.gdx.graphics.g3d.particles.ParticleControllerComponent.load.

Implements com.badlogic.gdx.graphics.g3d.particles.ResourceData.Configurable.load.

Annotations
@Override
saveback to summary
public void save(AssetManager manager, ResourceData<T> resources)

Overrides com.badlogic.gdx.graphics.g3d.particles.ParticleControllerComponent.save.

Implements com.badlogic.gdx.graphics.g3d.particles.ResourceData.Configurable.save.

Annotations
@Override
com.badlogic.gdx.graphics.g3d.particles.influencers back to summary

public Class ModelInfluencer.Random

extends ModelInfluencer
Class Inheritance

Assigns a random model of ModelInfluencer#models to the particles.

Nested and Inner Type Summary

Modifier and TypeClass and Description
private class

Field Summary

Modifier and TypeField and Description
pack-priv ModelInfluencer.Random.ModelInstancePool
Inherited from com.badlogic.gdx.graphics.g3d.particles.influencers.ModelInfluencer:
modelChannelmodels

Constructor Summary

AccessConstructor and Description
public
public
public
Random(Model... models)

Method Summary

Modifier and TypeMethod and Description
public void
activateParticles(int startIndex, int count)

Overrides com.badlogic.gdx.graphics.g3d.particles.ParticleControllerComponent.activateParticles.

Called to initialize new emitted particles.

public ModelInfluencer.Random
public void
public void
killParticles(int startIndex, int count)

Overrides com.badlogic.gdx.graphics.g3d.particles.ParticleControllerComponent.killParticles.

Called to notify which particles have been killed.

Inherited from com.badlogic.gdx.graphics.g3d.particles.influencers.ModelInfluencer:
allocateChannelsloadsave

Field Detail

poolback to summary
pack-priv ModelInfluencer.Random.ModelInstancePool pool

Constructor Detail

Randomback to summary
public Random()
Randomback to summary
public Random(ModelInfluencer.Random influencer)
Randomback to summary
public Random(Model... models)

Method Detail

activateParticlesback to summary
public void activateParticles(int startIndex, int count)

Overrides com.badlogic.gdx.graphics.g3d.particles.ParticleControllerComponent.activateParticles.

Doc from com.badlogic.gdx.graphics.g3d.particles.ParticleControllerComponent.activateParticles.

Called to initialize new emitted particles.

Annotations
@Override
copyback to summary
public ModelInfluencer.Random copy()

Implements abstract com.badlogic.gdx.graphics.g3d.particles.ParticleControllerComponent.copy.

Annotations
@Override
initback to summary
public void init()

Overrides com.badlogic.gdx.graphics.g3d.particles.ParticleControllerComponent.init.

Doc from com.badlogic.gdx.graphics.g3d.particles.ParticleControllerComponent.init.

Called once during intialization

Annotations
@Override
killParticlesback to summary
public void killParticles(int startIndex, int count)

Overrides com.badlogic.gdx.graphics.g3d.particles.ParticleControllerComponent.killParticles.

Doc from com.badlogic.gdx.graphics.g3d.particles.ParticleControllerComponent.killParticles.

Called to notify which particles have been killed.

Annotations
@Override
com.badlogic.gdx.graphics.g3d.particles.influencers back to summary

private Class ModelInfluencer.Random.ModelInstancePool

extends Pool<ModelInstance>
Class Inheritance

Field Summary

Inherited from com.badlogic.gdx.utils.Pool:
maxpeak

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public ModelInstance
Inherited from com.badlogic.gdx.utils.Pool:
cleardiscardfillfreefreeAllgetFreeobtainreset

Constructor Detail

ModelInstancePoolback to summary
public ModelInstancePool()

Method Detail

newObjectback to summary
public ModelInstance newObject()

Implements abstract com.badlogic.gdx.utils.Pool.newObject.

Annotations
@Override
com.badlogic.gdx.graphics.g3d.particles.influencers back to summary

public Class ModelInfluencer.Single

extends ModelInfluencer
Class Inheritance

Assigns the first model of ModelInfluencer#models to the particles.

Field Summary

Inherited from com.badlogic.gdx.graphics.g3d.particles.influencers.ModelInfluencer:
modelChannelmodels

Constructor Summary

AccessConstructor and Description
public
public
public
Single(Model... models)

Method Summary

Modifier and TypeMethod and Description
public ModelInfluencer.Single
public void
Inherited from com.badlogic.gdx.graphics.g3d.particles.influencers.ModelInfluencer:
allocateChannelsloadsave

Constructor Detail

Singleback to summary
public Single()
Singleback to summary
public Single(ModelInfluencer.Single influencer)
Singleback to summary
public Single(Model... models)

Method Detail

copyback to summary
public ModelInfluencer.Single copy()

Implements abstract com.badlogic.gdx.graphics.g3d.particles.ParticleControllerComponent.copy.

Annotations
@Override
initback to summary
public void init()

Overrides com.badlogic.gdx.graphics.g3d.particles.ParticleControllerComponent.init.

Doc from com.badlogic.gdx.graphics.g3d.particles.ParticleControllerComponent.init.

Called once during intialization

Annotations
@Override