com.threerings.opengl.renderer.config
Class TextureUnitConfig

java.lang.Object
  extended by com.threerings.util.DeepObject
      extended by com.threerings.opengl.renderer.config.TextureUnitConfig
All Implemented Interfaces:
Exportable, Copyable, Cloneable

public class TextureUnitConfig
extends DeepObject
implements Exportable

Contains the configuration of a single texture unit.


Field Summary
 TextureCoordGenConfig coordGenQ
          The texture coordinate generation function for the q coordinate.
 TextureCoordGenConfig coordGenR
          The texture coordinate generation function for the r coordinate.
 TextureCoordGenConfig coordGenS
          The texture coordinate generation function for the s coordinate.
 TextureCoordGenConfig coordGenT
          The texture coordinate generation function for the t coordinate.
 int coordSet
          The texture coordinate set to use.
 TextureEnvironmentConfig environment
          The texture environment.
 ConfigReference<TextureConfig> texture
          A reference to the texture to bind to the unit.
 Transform3D transform
          The texture transform.
 
Constructor Summary
TextureUnitConfig()
           
 
Method Summary
 TextureUnit createUnit(GlContext ctx, TextureState state, Scope scope, List<Dependency.Adder> adders, List<Updater> updaters)
          Creates the texture unit corresponding to this configuration.
 boolean isSupported(GlContext ctx, boolean fallback)
          Checks whether the unit configuration 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

texture

@Editable(nullable=true)
public ConfigReference<TextureConfig> texture
A reference to the texture to bind to the unit.


environment

@Editable
public TextureEnvironmentConfig environment
The texture environment.


coordSet

@Editable(min=0.0)
public int coordSet
The texture coordinate set to use.


coordGenS

@Editable(nullable=true)
public TextureCoordGenConfig coordGenS
The texture coordinate generation function for the s coordinate.


coordGenT

@Editable(nullable=true)
public TextureCoordGenConfig coordGenT
The texture coordinate generation function for the t coordinate.


coordGenR

@Editable(nullable=true)
@EditorTypes(value={TextureCoordGenConfig.ObjectLinear.class,TextureCoordGenConfig.EyeLinear.class,TextureCoordGenConfig.NormalMap.class,TextureCoordGenConfig.ReflectionMap.class})
public TextureCoordGenConfig coordGenR
The texture coordinate generation function for the r coordinate.


coordGenQ

@Editable(nullable=true)
@EditorTypes(value={TextureCoordGenConfig.ObjectLinear.class,TextureCoordGenConfig.EyeLinear.class})
public TextureCoordGenConfig coordGenQ
The texture coordinate generation function for the q coordinate.


transform

@Editable(step=0.01)
public Transform3D transform
The texture transform.

Constructor Detail

TextureUnitConfig

public TextureUnitConfig()
Method Detail

isSupported

public boolean isSupported(GlContext ctx,
                           boolean fallback)
Checks whether the unit configuration is supported.


createUnit

public TextureUnit createUnit(GlContext ctx,
                              TextureState state,
                              Scope scope,
                              List<Dependency.Adder> adders,
                              List<Updater> updaters)
Creates the texture unit corresponding to this configuration.



Copyright © 2011. All Rights Reserved.