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

public abstract Class ColorInfluencer

extends Influencer
Class Inheritance
Known Direct Subclasses
com.badlogic.gdx.graphics.g3d.particles.influencers.ColorInfluencer.Random, com.badlogic.gdx.graphics.g3d.particles.influencers.ColorInfluencer.Single
Imports
com.badlogic.gdx.graphics.g3d.particles.ParallelArray.FloatChannel, .ParticleChannels, com.badlogic.gdx.graphics.g3d.particles.values.GradientColorValue, .ScaledNumericValue, com.badlogic.gdx.math.MathUtils, com.badlogic.gdx.utils.Json, .JsonValue

It's an Influencer which controls particles color and transparency.
Author
Inferno

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class
ColorInfluencer.Random

It's an Influencer which assigns a random color when a particle is activated.

public static class
ColorInfluencer.Single

It's an Influencer which manages the particle color during its life time.

Field Summary

Modifier and TypeField and Description
pack-priv ParallelArray.FloatChannel

Constructor Summary

AccessConstructor and Description
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

Field Detail

colorChannelback to summary
pack-priv ParallelArray.FloatChannel colorChannel

Constructor Detail

ColorInfluencerback to summary
public ColorInfluencer()

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
com.badlogic.gdx.graphics.g3d.particles.influencers back to summary

public Class ColorInfluencer.Random

extends ColorInfluencer
Class Inheritance

It's an Influencer which assigns a random color when a particle is activated.

Field Summary

Modifier and TypeField and Description
pack-priv ParallelArray.FloatChannel

Constructor Summary

AccessConstructor and Description
public

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 void
allocateChannels()

Overrides com.badlogic.gdx.graphics.g3d.particles.influencers.ColorInfluencer.allocateChannels.

Called during initialization to allocate additional particles channels

public ColorInfluencer.Random

Field Detail

colorChannelback to summary
pack-priv ParallelArray.FloatChannel colorChannel

Hides com.badlogic.gdx.graphics.g3d.particles.influencers.ColorInfluencer.colorChannel.

Constructor Detail

Randomback to summary
public Random()

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
allocateChannelsback to summary
public void allocateChannels()

Overrides com.badlogic.gdx.graphics.g3d.particles.influencers.ColorInfluencer.allocateChannels.

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

Called during initialization to allocate additional particles channels

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

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

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

public Class ColorInfluencer.Single

extends ColorInfluencer
Class Inheritance

It's an Influencer which manages the particle color during its life time.

Field Summary

Modifier and TypeField and Description
pack-priv ParallelArray.FloatChannel
public ScaledNumericValue
public GradientColorValue
pack-priv ParallelArray.FloatChannel
Inherited from com.badlogic.gdx.graphics.g3d.particles.influencers.ColorInfluencer:
colorChannel

Constructor Summary

AccessConstructor and Description
public
public
Single(ColorInfluencer.Single billboardColorInfluencer)

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 void
allocateChannels()

Overrides com.badlogic.gdx.graphics.g3d.particles.influencers.ColorInfluencer.allocateChannels.

Called during initialization to allocate additional particles channels

public ColorInfluencer.Single
public void
public void
set(ColorInfluencer.Single colorInfluencer)

public void
update()

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

Called to execute the component behavior.

public void

Field Detail

alphaInterpolationChannelback to summary
pack-priv ParallelArray.FloatChannel alphaInterpolationChannel
alphaValueback to summary
public ScaledNumericValue alphaValue
colorValueback to summary
public GradientColorValue colorValue
lifeChannelback to summary
pack-priv ParallelArray.FloatChannel lifeChannel

Constructor Detail

Singleback to summary
public Single()
Singleback to summary
public Single(ColorInfluencer.Single billboardColorInfluencer)

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
allocateChannelsback to summary
public void allocateChannels()

Overrides com.badlogic.gdx.graphics.g3d.particles.influencers.ColorInfluencer.allocateChannels.

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

Called during initialization to allocate additional particles channels

Annotations
@Override
copyback to summary
public ColorInfluencer.Single copy()

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

Annotations
@Override
readback to summary
public void read(Json json, JsonValue jsonData)

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

Implements com.badlogic.gdx.utils.Json.Serializable.read.

Annotations
@Override
setback to summary
public void set(ColorInfluencer.Single colorInfluencer)
updateback to summary
public void update()

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

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

Called to execute the component behavior.

Annotations
@Override
writeback to summary
public void write(Json json)

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

Implements com.badlogic.gdx.utils.Json.Serializable.write.

Annotations
@Override