com.threerings.opengl.compositor.config
Class TargetConfig.Texture

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

public static class TargetConfig.Texture
extends TargetConfig

Renders to a (color and/or depth) texture.


Nested Class Summary
 
Nested classes/interfaces inherited from class com.threerings.opengl.compositor.config.TargetConfig
TargetConfig.Input, TargetConfig.Output, TargetConfig.Texture
 
Field Summary
 ConfigReference<TextureConfig> color
          The color texture to which we render.
 ConfigReference<TextureConfig> depth
          The depth texture to which we render.
 int depthBits
          The number of depth bits to request.
 int stencilBits
          The number of stencil bits to request.
 
Fields inherited from class com.threerings.opengl.compositor.config.TargetConfig
input, steps
 
Constructor Summary
TargetConfig.Texture()
           
 
Method Summary
 RenderEffect.Target createEffectTarget(GlContext ctx, Scope scope)
          Creates the effect target for this config.
 TextureRenderer getTextureRenderer(GlContext ctx)
          Retrieves the texture renderer 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

color

@Editable(weight=-1.0,
          nullable=true)
public ConfigReference<TextureConfig> color
The color texture to which we render.


depth

@Editable(weight=-1.0,
          nullable=true)
public ConfigReference<TextureConfig> depth
The depth texture to which we render.


depthBits

@Editable(min=0.0,
          weight=-1.0,
          hgroup="b")
public int depthBits
The number of depth bits to request.


stencilBits

@Editable(min=0.0,
          weight=-1.0,
          hgroup="b")
public int stencilBits
The number of stencil bits to request.

Constructor Detail

TargetConfig.Texture

public TargetConfig.Texture()
Method Detail

getTextureRenderer

public TextureRenderer getTextureRenderer(GlContext ctx)
Retrieves the texture renderer for this config.


getUpdateReferences

public void getUpdateReferences(ConfigReferenceSet refs)
Description copied from class: TargetConfig
Adds the target's update references to the provided set.

Overrides:
getUpdateReferences in class TargetConfig

isSupported

public boolean isSupported(GlContext ctx,
                           boolean fallback)
Description copied from class: TargetConfig
Determines whether this target config is supported by the hardware.

Overrides:
isSupported in class TargetConfig

createEffectTarget

public RenderEffect.Target createEffectTarget(GlContext ctx,
                                              Scope scope)
Description copied from class: TargetConfig
Creates the effect target for this config.

Specified by:
createEffectTarget in class TargetConfig


Copyright © 2011. All Rights Reserved.