public abstract class RegionInfluencer extends Influencer
Influencer
which assigns a region of a Texture
to the particles.Modifier and Type | Class and Description |
---|---|
static class |
RegionInfluencer.Animated
Assigns a region to the particles using the particle life percent
to calculate the current index in the
regions array. |
static class |
RegionInfluencer.AspectTextureRegion
It's a class used internally by the
RegionInfluencer to represent a texture region. |
static class |
RegionInfluencer.Random
Assigns a random region of
regions to the particles. |
static class |
RegionInfluencer.Single
Assigns the first region of
regions to the particles. |
Modifier and Type | Field and Description |
---|---|
Array<RegionInfluencer.AspectTextureRegion> |
regions |
Constructor and Description |
---|
RegionInfluencer() |
RegionInfluencer(int regionsCount) |
RegionInfluencer(RegionInfluencer regionInfluencer) |
RegionInfluencer(Texture texture) |
RegionInfluencer(TextureRegion... regions)
All the regions must be defined on the same Texture
|
Modifier and Type | Method and Description |
---|---|
void |
add(TextureRegion... regions) |
void |
allocateChannels()
Called during initialization to allocate additional particles channels
|
void |
clear() |
void |
read(Json json,
JsonValue jsonData) |
void |
write(Json json) |
activateParticles, copy, dispose, end, init, killParticles, load, save, set, start, update
public Array<RegionInfluencer.AspectTextureRegion> regions
public RegionInfluencer(int regionsCount)
public RegionInfluencer()
public RegionInfluencer(TextureRegion... regions)
public RegionInfluencer(Texture texture)
public RegionInfluencer(RegionInfluencer regionInfluencer)
public void add(TextureRegion... regions)
public void clear()
public void allocateChannels()
ParticleControllerComponent
allocateChannels
in class ParticleControllerComponent
public void write(Json json)
write
in interface Json.Serializable
write
in class ParticleControllerComponent
public void read(Json json, JsonValue jsonData)
read
in interface Json.Serializable
read
in class ParticleControllerComponent
Copyright © 2015. All rights reserved.