com.threerings.opengl.renderer.config
Class LightConfig

java.lang.Object
  extended by com.threerings.util.DeepObject
      extended by com.threerings.opengl.renderer.config.LightConfig
All Implemented Interfaces:
Exportable, Copyable, Cloneable
Direct Known Subclasses:
LightConfig.Directional, LightConfig.Point

@EditorTypes(value={LightConfig.Directional.class,LightConfig.Point.class,LightConfig.Spot.class})
public abstract class LightConfig
extends DeepObject
implements Exportable

Represents the state of a single light.


Nested Class Summary
static class LightConfig.Attenuation
          Represents the light's attenuation coefficients.
static class LightConfig.Colors
          Represents the colors of the light.
static class LightConfig.Directional
          A directional light.
static class LightConfig.Falloff
          Represents the spot light falloff.
static class LightConfig.Point
          A point light.
static class LightConfig.Spot
          A spot light.
 
Field Summary
 LightConfig.Colors colors
          The color of the light.
 
Constructor Summary
LightConfig()
           
LightConfig(LightConfig other)
           
 
Method Summary
 Light createLight(GlContext ctx, Scope scope, List<Updater> updaters)
          Creates a light object corresponding to this configuration.
 
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

colors

@Editable(hgroup="p")
public LightConfig.Colors colors
The color of the light.

Constructor Detail

LightConfig

public LightConfig(LightConfig other)

LightConfig

public LightConfig()
Method Detail

createLight

public Light createLight(GlContext ctx,
                         Scope scope,
                         List<Updater> updaters)
Creates a light object corresponding to this configuration.



Copyright © 2011. All Rights Reserved.