com.threerings.opengl.renderer
Class Renderer.LightRecord

java.lang.Object
  extended by com.threerings.opengl.renderer.Light
      extended by com.threerings.opengl.renderer.Renderer.LightRecord
Enclosing class:
Renderer

protected static class Renderer.LightRecord
extends Light

Represents the current state of a single light.


Nested Class Summary
 
Nested classes/interfaces inherited from class com.threerings.opengl.renderer.Light
Light.Type
 
Field Summary
 Boolean enabled
          Whether or not this light is currently enabled.
 Light light
          A reference to the last light set.
 
Fields inherited from class com.threerings.opengl.renderer.Light
ambient, castsShadows, constantAttenuation, diffuse, dirty, linearAttenuation, position, quadraticAttenuation, specular, spotCutoff, spotDirection, spotExponent
 
Constructor Summary
Renderer.LightRecord(int idx)
          Creates a new light record.
 
Method Summary
 void invalidate()
          Invalidates this record, forcing it to be reapplied.
 
Methods inherited from class com.threerings.opengl.renderer.Light
getType, isCompatible
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

enabled

public Boolean enabled
Whether or not this light is currently enabled.


light

public Light light
A reference to the last light set.

Constructor Detail

Renderer.LightRecord

public Renderer.LightRecord(int idx)
Creates a new light record.

Method Detail

invalidate

public void invalidate()
Invalidates this record, forcing it to be reapplied.