com.threerings.opengl.compositor.config
Class RenderEffectConfig.Technique

java.lang.Object
  extended by com.threerings.util.DeepObject
      extended by com.threerings.opengl.compositor.config.RenderEffectConfig.Technique
All Implemented Interfaces:
Exportable, Copyable, Cloneable
Enclosing class:
RenderEffectConfig

public static class RenderEffectConfig.Technique
extends DeepObject
implements Exportable

A technique available to render the effect.


Field Summary
 TargetConfig.Output output
          The final output target.
 String scheme
          The render scheme with which this technique is associated.
 TargetConfig[] targets
          The intermediate targets.
 
Constructor Summary
RenderEffectConfig.Technique()
           
 
Method Summary
 RenderSchemeConfig getSchemeConfig(GlContext ctx)
          Returns the cached configuration for the technique's render scheme.
 void getUpdateReferences(ConfigReferenceSet refs)
          Adds the technique's update references to the provided set.
 void invalidate()
          Invalidates any cached state for this technique.
 boolean isSupported(GlContext ctx, boolean fallback)
          Determines whether this technique is supported.
 RenderEffectConfig.Technique process(GlContext ctx, boolean fallback)
          Processes this technique to accommodate the features of 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

scheme

@Editable(editor="config",
          mode="render_scheme",
          nullable=true)
public String scheme
The render scheme with which this technique is associated.


targets

@Editable
public TargetConfig[] targets
The intermediate targets.


output

@Editable
public TargetConfig.Output output
The final output target.

Constructor Detail

RenderEffectConfig.Technique

public RenderEffectConfig.Technique()
Method Detail

getUpdateReferences

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


process

public RenderEffectConfig.Technique process(GlContext ctx,
                                            boolean fallback)
Processes this technique to accommodate the features of the hardware.

Returns:
the processed technique, or null if the technique is not supported.

isSupported

public boolean isSupported(GlContext ctx,
                           boolean fallback)
Determines whether this technique is supported.


getSchemeConfig

public RenderSchemeConfig getSchemeConfig(GlContext ctx)
Returns the cached configuration for the technique's render scheme.


invalidate

public void invalidate()
Invalidates any cached state for this technique.



Copyright © 2011. All Rights Reserved.