com.threerings.opengl.renderer.config
Class ColorizationConfig

java.lang.Object
  extended by com.threerings.util.DeepObject
      extended by com.threerings.opengl.renderer.config.ColorizationConfig
All Implemented Interfaces:
Exportable, com.threerings.io.Streamable, Copyable, Cloneable
Direct Known Subclasses:
ColorizationConfig.CustomOffsets, ColorizationConfig.FullyCustom, ColorizationConfig.Normal

@EditorTypes(value={ColorizationConfig.Normal.class,ColorizationConfig.CustomOffsets.class,ColorizationConfig.FullyCustom.class})
public abstract class ColorizationConfig
extends DeepObject
implements Exportable, com.threerings.io.Streamable

Describes a colorization.


Nested Class Summary
static class ColorizationConfig.CustomOffsets
          Uses a pository class and a custom color.
static class ColorizationConfig.FullyCustom
          A fully custom colorization.
static class ColorizationConfig.Normal
          A reference to a pository colorization.
static class ColorizationConfig.Triplet
          Represents a set of hue, saturation, and value values.
 
Nested classes/interfaces inherited from interface com.threerings.io.Streamable
com.threerings.io.Streamable.Closure
 
Constructor Summary
ColorizationConfig()
           
 
Method Summary
static ColorizationConfig createConfig(int clazz, float hue, float saturation, float value)
          Creates a coloriation config
abstract  com.threerings.media.image.Colorization getColorization(GlContext ctx)
          Returns the colorization for this config.
 
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

ColorizationConfig

public ColorizationConfig()
Method Detail

createConfig

public static ColorizationConfig createConfig(int clazz,
                                              float hue,
                                              float saturation,
                                              float value)
Creates a coloriation config


getColorization

public abstract com.threerings.media.image.Colorization getColorization(GlContext ctx)
Returns the colorization for this config.



Copyright © 2011. All Rights Reserved.