com.threerings.opengl.renderer.config
Class TextureEnvironmentConfig

java.lang.Object
  extended by com.threerings.util.DeepObject
      extended by com.threerings.opengl.renderer.config.TextureEnvironmentConfig
All Implemented Interfaces:
Exportable, Copyable, Cloneable
Direct Known Subclasses:
TextureEnvironmentConfig.Add, TextureEnvironmentConfig.Blend, TextureEnvironmentConfig.Combine, TextureEnvironmentConfig.Decal, TextureEnvironmentConfig.Modulate, TextureEnvironmentConfig.Replace

@EditorTypes(value={TextureEnvironmentConfig.Modulate.class,TextureEnvironmentConfig.Decal.class,TextureEnvironmentConfig.Blend.class,TextureEnvironmentConfig.Replace.class,TextureEnvironmentConfig.Add.class,TextureEnvironmentConfig.Combine.class})
public abstract class TextureEnvironmentConfig
extends DeepObject
implements Exportable

Contains the configuration of a texture unit's environment.


Nested Class Summary
static class TextureEnvironmentConfig.Add
          The add environment mode.
static class TextureEnvironmentConfig.AlphaCombine
          Alpha combination modes.
static class TextureEnvironmentConfig.AlphaOperand
          Alpha combination operands.
static class TextureEnvironmentConfig.AlphaParam
          A single alpha source/operand pair.
static class TextureEnvironmentConfig.Blend
          The blend environment mode.
static class TextureEnvironmentConfig.Combine
          The combine environment mode.
static class TextureEnvironmentConfig.Decal
          The decal environment mode.
static class TextureEnvironmentConfig.Modulate
          The modulate environment mode.
static class TextureEnvironmentConfig.Replace
          The replace environment mode.
static class TextureEnvironmentConfig.RGBCombine
          RGB combination modes.
static class TextureEnvironmentConfig.RGBOperand
          RGB combination operands.
static class TextureEnvironmentConfig.RGBParam
          A single rgb combine parameter.
static class TextureEnvironmentConfig.Scale
          The combination scale values.
static class TextureEnvironmentConfig.Source
          Combine sources.
 
Field Summary
 Color4f color
          The environment color.
 float lodBias
          The texture level of detail bias.
 
Constructor Summary
TextureEnvironmentConfig()
           
 
Method Summary
 void configure(TextureUnit unit)
          Configures the supplied texture unit with this environment's parameters.
abstract  int getMode()
          Returns the OpenGL constant for the mode.
 boolean isSupported(boolean fallback)
          Checks whether the mode is supported.
 
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(mode="alpha",
          hgroup="cl")
public Color4f color
The environment color.


lodBias

@Editable(step=0.01,
          hgroup="cl")
public float lodBias
The texture level of detail bias.

Constructor Detail

TextureEnvironmentConfig

public TextureEnvironmentConfig()
Method Detail

isSupported

public boolean isSupported(boolean fallback)
Checks whether the mode is supported.


configure

public void configure(TextureUnit unit)
Configures the supplied texture unit with this environment's parameters.


getMode

public abstract int getMode()
Returns the OpenGL constant for the mode.



Copyright © 2011. All Rights Reserved.