Search in sources :

Example 6 with Influencer

use of com.badlogic.gdx.graphics.g3d.particles.influencers.Influencer in project libgdx by libgdx.

the class ParticleController method init.

/** Initialize the controller. All the sub systems will be initialized and binded to the controller. Must be called before any
	 * other method. */
public void init() {
    bind();
    if (particles != null) {
        end();
        particleChannels.resetIds();
    }
    allocateChannels(emitter.maxParticleCount);
    emitter.init();
    for (Influencer influencer : influencers) influencer.init();
    renderer.init();
}
Also used : Influencer(com.badlogic.gdx.graphics.g3d.particles.influencers.Influencer)

Example 7 with Influencer

use of com.badlogic.gdx.graphics.g3d.particles.influencers.Influencer in project libgdx by libgdx.

the class ParticleController method load.

@Override
public void load(AssetManager manager, ResourceData data) {
    emitter.load(manager, data);
    for (Influencer influencer : influencers) influencer.load(manager, data);
    renderer.load(manager, data);
}
Also used : Influencer(com.badlogic.gdx.graphics.g3d.particles.influencers.Influencer)

Aggregations

Influencer (com.badlogic.gdx.graphics.g3d.particles.influencers.Influencer)7 Emitter (com.badlogic.gdx.graphics.g3d.particles.emitters.Emitter)1 ColorInfluencer (com.badlogic.gdx.graphics.g3d.particles.influencers.ColorInfluencer)1 DynamicsInfluencer (com.badlogic.gdx.graphics.g3d.particles.influencers.DynamicsInfluencer)1 ModelInfluencer (com.badlogic.gdx.graphics.g3d.particles.influencers.ModelInfluencer)1 ParticleControllerFinalizerInfluencer (com.badlogic.gdx.graphics.g3d.particles.influencers.ParticleControllerFinalizerInfluencer)1 ParticleControllerInfluencer (com.badlogic.gdx.graphics.g3d.particles.influencers.ParticleControllerInfluencer)1 RegionInfluencer (com.badlogic.gdx.graphics.g3d.particles.influencers.RegionInfluencer)1 ScaleInfluencer (com.badlogic.gdx.graphics.g3d.particles.influencers.ScaleInfluencer)1 SpawnInfluencer (com.badlogic.gdx.graphics.g3d.particles.influencers.SpawnInfluencer)1