org.xith3d.render.states
Class StateNode
java.lang.Object
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.
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
id
protected long id
masterCopy
protected StateTrackable<?> masterCopy
StateNode
public StateNode(StateTrackable<?> item)
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()