com.threerings.opengl.compositor.config
Class TargetConfig

java.lang.Object
  extended by com.threerings.util.DeepObject
      extended by com.threerings.opengl.compositor.config.TargetConfig
All Implemented Interfaces:
Exportable, Copyable, Cloneable
Direct Known Subclasses:
TargetConfig.Output, TargetConfig.Texture

@EditorTypes(value=TargetConfig.Texture.class)
public abstract class TargetConfig
extends DeepObject
implements Exportable

Represents a single target to update within the post effect.


Nested Class Summary
static class TargetConfig.Input
          The available target inputs: either nothing or the result of the previous post effect.
static class TargetConfig.Output
          Renders to the effect output.
static class TargetConfig.Texture
          Renders to a (color and/or depth) texture.
 
Field Summary
 TargetConfig.Input input
          The input to the target.
 StepConfig[] steps
          The steps required to update the target.
 
Constructor Summary
TargetConfig()
           
 
Method Summary
abstract  RenderEffect.Target createEffectTarget(GlContext ctx, Scope scope)
          Creates the effect target for this config.
 void getUpdateReferences(ConfigReferenceSet refs)
          Adds the target's update references to the provided set.
 boolean isSupported(GlContext ctx, boolean fallback)
          Determines whether this target config is supported by the hardware.
 
Methods inherited from class com.threerings.util.DeepObject
clone, copy, copy, equals, hashCode, toString
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

input

@Editable
public TargetConfig.Input input
The input to the target.


steps

@Editable
public StepConfig[] steps
The steps required to update the target.

Constructor Detail

TargetConfig

public TargetConfig()
Method Detail

getUpdateReferences

public void getUpdateReferences(ConfigReferenceSet refs)
Adds the target's update references to the provided set.


isSupported

public boolean isSupported(GlContext ctx,
                           boolean fallback)
Determines whether this target config is supported by the hardware.


createEffectTarget

public abstract RenderEffect.Target createEffectTarget(GlContext ctx,
                                                       Scope scope)
Creates the effect target for this config.



Copyright © 2011. All Rights Reserved.