com.rugl.gl.facets
Class Lighting
java.lang.Object
com.rugl.gl.facets.Lighting
- All Implemented Interfaces:
- Facet<Lighting>, java.lang.Comparable<Lighting>
public class Lighting
- extends java.lang.Object
- implements Facet<Lighting>
Controls lighting state. Not entirely sure this is useful - how
often does this stuff get changed object to object?
- Author:
- ryanm
|
Nested Class Summary |
static class |
Lighting.Light
Controls a single light |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
enabled
public boolean enabled
light
public final Lighting.Light[] light
Lighting
public Lighting()
set
public void set(Lighting l)
- Description copied from interface:
Facet
- Copy the values
- Specified by:
set in interface Facet<Lighting>
transitionFrom
public void transitionFrom(Lighting l)
- Description copied from interface:
Facet
- Alter the state if necessary
- Specified by:
transitionFrom in interface Facet<Lighting>
- Parameters:
l - The current state.
compareTo
public int compareTo(Lighting l)
- Specified by:
compareTo in interface java.lang.Comparable<Lighting>
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object