com.threerings.opengl.compositor
Class RenderEffect

java.lang.Object
  extended by com.threerings.expr.DynamicScope
      extended by com.threerings.opengl.compositor.RenderEffect
All Implemented Interfaces:
ConfigUpdateListener<RenderEffectConfig>, Scope, ScopeUpdateListener, Comparable<RenderEffect>

public class RenderEffect
extends DynamicScope
implements ConfigUpdateListener<RenderEffectConfig>, Comparable<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
 
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.
 void setConfig(ConfigReference<RenderEffectConfig> ref)
          Sets the configuration of this render effect.
 void setConfig(RenderEffectConfig config)
          Sets the configuration of this effect.
 
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
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RenderEffect

public RenderEffect(GlContext ctx,
                    Scope parentScope,
                    ConfigReference<RenderEffectConfig> ref)
Creates a new render effect.


RenderEffect

public RenderEffect(GlContext ctx,
                    Scope parentScope,
                    RenderEffectConfig config)
Creates a new render effect.

Method Detail

setConfig

public void setConfig(ConfigReference<RenderEffectConfig> ref)
Sets the configuration of this render effect.


setConfig

public void setConfig(RenderEffectConfig config)
Sets the configuration of this effect.


getPriority

public int getPriority()
Returns the effect's priority.


render

public void render(int idx)
Renders this effect.

Parameters:
idx - the effect's index within the compositor list.

configUpdated

public void configUpdated(ConfigEvent<RenderEffectConfig> event)
Description copied from interface: ConfigUpdateListener
Called when a configuration has been updated.

Specified by:
configUpdated in interface ConfigUpdateListener<RenderEffectConfig>

compareTo

public int compareTo(RenderEffect other)
Specified by:
compareTo in interface Comparable<RenderEffect>

dispose

public void dispose()
Description copied from class: DynamicScope
Releases the resources associated with this scope.

Overrides:
dispose in class DynamicScope


Copyright © 2011. All Rights Reserved.