|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.threerings.expr.DynamicScope
com.threerings.opengl.compositor.RenderEffect
public class RenderEffect
Handles a render effect.
| Nested Class Summary | |
|---|---|
static class |
RenderEffect.OutputTarget
Renders to the output. |
static class |
RenderEffect.Target
Handles a single effect target. |
static class |
RenderEffect.TextureTarget
Renders to a texture. |
| Field Summary | |
|---|---|
protected RenderEffectConfig |
_config
The render effect configuration. |
protected GlContext |
_ctx
The application context. |
protected String |
_identity
The identity of the effect instance. |
protected int |
_idx
Our index in the compositor's effect list. |
protected RenderEffect.Target |
_output
The output target. |
protected int |
_priority
The priority of the effect. |
protected RenderEffect.Target[] |
_targets
The intermediate targets. |
protected static RenderEffectConfig.Technique |
NOOP_TECHNIQUE
A technique that does nothing. |
| Fields inherited from class com.threerings.expr.DynamicScope |
|---|
_compoundDepth, _listeners, _owner, _parentScope, _scopeName, _symbols, INVALID_SCOPE |
| Fields inherited from interface com.threerings.expr.Scope |
|---|
EPOCH, NOW |
| Constructor Summary | |
|---|---|
RenderEffect(GlContext ctx,
Scope parentScope,
ConfigReference<RenderEffectConfig> ref)
Creates a new render effect. |
|
RenderEffect(GlContext ctx,
Scope parentScope,
RenderEffectConfig config)
Creates a new render effect. |
|
| Method Summary | |
|---|---|
int |
compareTo(RenderEffect other)
|
void |
configUpdated(ConfigEvent<RenderEffectConfig> event)
Called when a configuration has been updated. |
void |
dispose()
Releases the resources associated with this scope. |
int |
getPriority()
Returns the effect's priority. |
void |
render(int idx)
Renders this effect. |
protected void |
renderPrevious()
Renders the previous contents of the compositor queues. |
void |
setConfig(ConfigReference<RenderEffectConfig> ref)
Sets the configuration of this render effect. |
void |
setConfig(RenderEffectConfig config)
Sets the configuration of this effect. |
protected void |
updateFromConfig()
Updates the effect to match its new or modified configuration. |
| Methods inherited from class com.threerings.expr.DynamicScope |
|---|
addListener, endCompoundUpdate, get, getParentScope, getScopeName, put, remove, removeListener, scopeUpdated, setParentScope, startCompoundUpdate, wasUpdated |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected GlContext _ctx
@Scoped protected String _identity
protected RenderEffectConfig _config
protected int _priority
protected RenderEffect.Target[] _targets
protected RenderEffect.Target _output
protected int _idx
protected static final RenderEffectConfig.Technique NOOP_TECHNIQUE
| Constructor Detail |
|---|
public RenderEffect(GlContext ctx,
Scope parentScope,
ConfigReference<RenderEffectConfig> ref)
public RenderEffect(GlContext ctx,
Scope parentScope,
RenderEffectConfig config)
| Method Detail |
|---|
public void setConfig(ConfigReference<RenderEffectConfig> ref)
public void setConfig(RenderEffectConfig config)
public int getPriority()
public void render(int idx)
idx - the effect's index within the compositor list.public void configUpdated(ConfigEvent<RenderEffectConfig> event)
ConfigUpdateListener
configUpdated in interface ConfigUpdateListener<RenderEffectConfig>public int compareTo(RenderEffect other)
compareTo in interface Comparable<RenderEffect>public void dispose()
DynamicScope
dispose in class DynamicScopeprotected void renderPrevious()
protected void updateFromConfig()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||