Class ColorInfluencer.Single
- java.lang.Object
-
- com.badlogic.gdx.graphics.g3d.particles.ParticleControllerComponent
-
- com.badlogic.gdx.graphics.g3d.particles.influencers.Influencer
-
- com.badlogic.gdx.graphics.g3d.particles.influencers.ColorInfluencer
-
- com.badlogic.gdx.graphics.g3d.particles.influencers.ColorInfluencer.Single
-
- All Implemented Interfaces:
ResourceData.Configurable,Disposable,Json.Serializable
- Enclosing class:
- ColorInfluencer
public static class ColorInfluencer.Single extends ColorInfluencer
It's anInfluencerwhich manages the particle color during its life time.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.badlogic.gdx.graphics.g3d.particles.influencers.ColorInfluencer
ColorInfluencer.Random, ColorInfluencer.Single
-
-
Field Summary
Fields Modifier and Type Field Description ScaledNumericValuealphaValueGradientColorValuecolorValue
-
Constructor Summary
Constructors Constructor Description Single()Single(ColorInfluencer.Single billboardColorInfluencer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidactivateParticles(int startIndex, int count)Called to initialize new emitted particles.voidallocateChannels()Called during initialization to allocate additional particles channelsColorInfluencer.Singlecopy()voidread(Json json, JsonValue jsonData)voidset(ColorInfluencer.Single colorInfluencer)voidupdate()Called to execute the component behavior.voidwrite(Json json)-
Methods inherited from class com.badlogic.gdx.graphics.g3d.particles.ParticleControllerComponent
dispose, end, init, killParticles, load, save, set, start
-
-
-
-
Field Detail
-
alphaValue
public ScaledNumericValue alphaValue
-
colorValue
public GradientColorValue colorValue
-
-
Constructor Detail
-
Single
public Single()
-
Single
public Single(ColorInfluencer.Single billboardColorInfluencer)
-
-
Method Detail
-
set
public void set(ColorInfluencer.Single colorInfluencer)
-
allocateChannels
public void allocateChannels()
Description copied from class:ParticleControllerComponentCalled during initialization to allocate additional particles channels- Overrides:
allocateChannelsin classColorInfluencer
-
activateParticles
public void activateParticles(int startIndex, int count)Description copied from class:ParticleControllerComponentCalled to initialize new emitted particles.- Overrides:
activateParticlesin classParticleControllerComponent
-
update
public void update()
Description copied from class:ParticleControllerComponentCalled to execute the component behavior.- Overrides:
updatein classParticleControllerComponent
-
copy
public ColorInfluencer.Single copy()
- Specified by:
copyin classParticleControllerComponent
-
write
public void write(Json json)
- Specified by:
writein interfaceJson.Serializable- Overrides:
writein classParticleControllerComponent
-
read
public void read(Json json, JsonValue jsonData)
- Specified by:
readin interfaceJson.Serializable- Overrides:
readin classParticleControllerComponent
-
-