org.xith3d.render.states
Class StateNode

java.lang.Object
  extended by org.xith3d.render.states.StateNode
All Implemented Interfaces:
java.lang.Comparable<StateNode>

public class StateNode
extends java.lang.Object
implements java.lang.Comparable<StateNode>

Used to keep a cached copy of a state for the render engine. Shaders and other StateTrackable resources can be stored in a StateMap.


Field Summary
protected  long id
           
protected  StateTrackable<?> masterCopy
           
 
Constructor Summary
StateNode(StateTrackable<?> item)
           
 
Method Summary
 int compareTo(StateNode o)
           
 boolean equals(java.lang.Object o)
           
 long getId()
           
 StateTrackable<?> getMasterCopy()
           
 int getNumReferences()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

id

protected long id

masterCopy

protected StateTrackable<?> masterCopy
Constructor Detail

StateNode

public StateNode(StateTrackable<?> item)
Method Detail

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

compareTo

public int compareTo(StateNode o)
Specified by:
compareTo in interface java.lang.Comparable<StateNode>

getId

public long getId()

getMasterCopy

public StateTrackable<?> getMasterCopy()

getNumReferences

public int getNumReferences()