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 anInfluencer
which 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 ScaledNumericValue
alphaValue
GradientColorValue
colorValue
-
Constructor Summary
Constructors Constructor Description Single()
Single(ColorInfluencer.Single billboardColorInfluencer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
activateParticles(int startIndex, int count)
Called to initialize new emitted particles.void
allocateChannels()
Called during initialization to allocate additional particles channelsColorInfluencer.Single
copy()
void
read(Json json, JsonValue jsonData)
void
set(ColorInfluencer.Single colorInfluencer)
void
update()
Called to execute the component behavior.void
write(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:ParticleControllerComponent
Called during initialization to allocate additional particles channels- Overrides:
allocateChannels
in classColorInfluencer
-
activateParticles
public void activateParticles(int startIndex, int count)
Description copied from class:ParticleControllerComponent
Called to initialize new emitted particles.- Overrides:
activateParticles
in classParticleControllerComponent
-
update
public void update()
Description copied from class:ParticleControllerComponent
Called to execute the component behavior.- Overrides:
update
in classParticleControllerComponent
-
copy
public ColorInfluencer.Single copy()
- Specified by:
copy
in classParticleControllerComponent
-
write
public void write(Json json)
- Specified by:
write
in interfaceJson.Serializable
- Overrides:
write
in classParticleControllerComponent
-
read
public void read(Json json, JsonValue jsonData)
- Specified by:
read
in interfaceJson.Serializable
- Overrides:
read
in classParticleControllerComponent
-
-