com.threerings.opengl.renderer.config
Class TextureCoordGenConfig

java.lang.Object
  extended by com.threerings.util.DeepObject
      extended by com.threerings.opengl.renderer.config.TextureCoordGenConfig
All Implemented Interfaces:
Exportable, Copyable, Cloneable
Direct Known Subclasses:
TextureCoordGenConfig.Linear, TextureCoordGenConfig.NormalMap, TextureCoordGenConfig.ReflectionMap, TextureCoordGenConfig.SphereMap

@EditorTypes(value={TextureCoordGenConfig.ObjectLinear.class,TextureCoordGenConfig.EyeLinear.class,TextureCoordGenConfig.SphereMap.class,TextureCoordGenConfig.NormalMap.class,TextureCoordGenConfig.ReflectionMap.class})
public abstract class TextureCoordGenConfig
extends DeepObject
implements Exportable

Contains a texture coordinate generation function.


Nested Class Summary
static class TextureCoordGenConfig.EyeLinear
          Generates coordinates using a linear function in eye space.
static class TextureCoordGenConfig.Linear
          Superclass of the linear texture coordinate generation functions.
static class TextureCoordGenConfig.NormalMap
          Generates coordinates using a normal map function.
static class TextureCoordGenConfig.ObjectLinear
          Generates coordinates using a linear function in object (model) space.
static class TextureCoordGenConfig.ReflectionMap
          Generates coordinates using a reflection map function.
static class TextureCoordGenConfig.SphereMap
          Generates coordinates using a sphere map function.
 
Constructor Summary
TextureCoordGenConfig()
           
 
Method Summary
abstract  int getModeAndPlane(Vector4f plane)
          Returns the OpenGL constant for the mode and populates the supplied object with the plane coefficients (if applicable).
 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
 

Constructor Detail

TextureCoordGenConfig

public TextureCoordGenConfig()
Method Detail

isSupported

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


getModeAndPlane

public abstract int getModeAndPlane(Vector4f plane)
Returns the OpenGL constant for the mode and populates the supplied object with the plane coefficients (if applicable).



Copyright © 2011. All Rights Reserved.