public abstract class FilterEffect extends Effect
Modifier and Type | Field and Description |
---|---|
protected EffectContext |
mEffectContext |
Modifier | Constructor and Description |
---|---|
protected |
FilterEffect(EffectContext context,
String name)
Protected constructor as FilterEffects should be created by Factory.
|
Modifier and Type | Method and Description |
---|---|
protected void |
beginGLEffect()
Call this before manipulating the GL context.
|
protected void |
endGLEffect()
Call this after manipulating the GL context.
|
protected Frame |
frameFromTexture(int texId,
int width,
int height)
Converts a texture into a Frame.
|
protected FilterContext |
getFilterContext()
Returns the active filter context for this effect.
|
String |
getName()
Get the effect name.
|
apply, release, setParameter, setUpdateListener
protected EffectContext mEffectContext
protected FilterEffect(EffectContext context, String name)
public String getName()
protected void beginGLEffect()
protected void endGLEffect()
protected FilterContext getFilterContext()
protected Frame frameFromTexture(int texId, int width, int height)