com.rugl.gl.facets
Class DepthTest

java.lang.Object
  extended by com.rugl.gl.facets.DepthTest
All Implemented Interfaces:
Facet<DepthTest>, java.lang.Comparable<DepthTest>

public class DepthTest
extends java.lang.Object
implements Facet<DepthTest>

Controls the depth test

Author:
ryanm

Field Summary
 boolean enabled
          Whether the depth test is enabled or not
 ComparisonFunction func
          The depth test function, see glDepthFunc
 
Constructor Summary
DepthTest()
           
 
Method Summary
 int compareTo(DepthTest d)
           
 void set(DepthTest d)
          Copy the values
 java.lang.String toString()
           
 void transitionFrom(DepthTest d)
          Alter the state if necessary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

enabled

public boolean enabled
Whether the depth test is enabled or not


func

public ComparisonFunction func
The depth test function, see glDepthFunc

Constructor Detail

DepthTest

public DepthTest()
Method Detail

set

public void set(DepthTest d)
Description copied from interface: Facet
Copy the values

Specified by:
set in interface Facet<DepthTest>

transitionFrom

public void transitionFrom(DepthTest d)
Description copied from interface: Facet
Alter the state if necessary

Specified by:
transitionFrom in interface Facet<DepthTest>
Parameters:
d - The current state.

compareTo

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

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object