com.rugl.gl.facets
Class AlphaTest

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

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

Controls the alpha test

Author:
ryanm

Field Summary
 boolean enabled
          If the alpha test is enabled or not
 ComparisonFunction func
          The alpha function
 float ref
          The reference value
 
Constructor Summary
AlphaTest()
           
 
Method Summary
 int compareTo(AlphaTest a)
           
 void set(AlphaTest a)
          Copy the values
 java.lang.String toString()
           
 void transitionFrom(AlphaTest a)
          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
If the alpha test is enabled or not


func

public ComparisonFunction func
The alpha function


ref

public float ref
The reference value

Constructor Detail

AlphaTest

public AlphaTest()
Method Detail

set

public void set(AlphaTest a)
Description copied from interface: Facet
Copy the values

Specified by:
set in interface Facet<AlphaTest>

transitionFrom

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

Specified by:
transitionFrom in interface Facet<AlphaTest>
Parameters:
a - The current state.

compareTo

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

toString

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