public abstract class Effect
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
abstract void |
addQueue(org.distorted.library.effectqueue.EffectQueue queue) |
static void |
enableEffects(EffectType type)
Enable all effects of a given type.
|
int |
getCenterDimension()
Return the dimension of the Center supported by this effect (0- no center supported at all).
|
int |
getEffectDimension()
Return the number of Uniforms needed to describe this effect.
|
long |
getID()
Return the unique ID of this Effect.
|
EffectName |
getName()
Return the EffectName enum corresponding to this Effect.
|
int |
getRegionDimension()
Return the dimension of the Region supported by this effect (0- no region supported at all).
|
java.lang.String |
getString()
Return a printable name of this Effect.
|
EffectType |
getType()
Return the EffectType enum corresponding to this Effect.
|
boolean |
isUnity(float[] buffer,
int index)
Do the set of Uniforms written in buffer[index], buffer[index+1], etc represent a Unity, i.e a
null Effect?
|
void |
notifyWhenFinished(EffectListener el)
Adds the calling class to the list of Listeners that get notified when this Effect gets 'finished'
i.e.
|
abstract void |
remQueue(org.distorted.library.effectqueue.EffectQueue queue) |
public abstract void addQueue(org.distorted.library.effectqueue.EffectQueue queue)
public abstract void remQueue(org.distorted.library.effectqueue.EffectQueue queue)
public boolean isUnity(float[] buffer, int index)
public static void enableEffects(EffectType type)
type
- EffectType to enable.public EffectType getType()
EffectType
public EffectName getName()
EffectName
public long getID()
public java.lang.String getString()
public int getCenterDimension()
public int getRegionDimension()
public int getEffectDimension()
public void notifyWhenFinished(EffectListener el)
el
- A class implementing the EffectListener interface that wants to get notifications.