org.jagatoo.opengl.enums
Enum TestFunction

java.lang.Object
  extended by java.lang.Enum<TestFunction>
      extended by org.jagatoo.opengl.enums.TestFunction
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<TestFunction>

public enum TestFunction
extends java.lang.Enum<TestFunction>

Insert type comment here.


Enum Constant Summary
ALWAYS
          Indicates pixels are always drawn irrespective of the alpha value.
EQUAL
          Indicates pixels are drawn if the pixel alpha value is equal to the alpha test value.
GREATER
          Indicates pixels are drawn if the pixel alpha value is greater than the alpha test value.
GREATER_OR_EQUAL
          Indicates pixels are drawn if the pixel alpha value is greater than or equal to the alpha test value.
LESS
          Indicates pixels are drawn if the pixel alpha value is less than the alpha test value.
LESS_OR_EQUAL
          Indicates pixels are drawn if the pixel alpha value is less than or equal to the alpha test value.
NEVER
          Indicates pixels are never drawn irrespective of the alpha value.
NOT_EQUAL
          Indicates pixels are drawn if the pixel alpha value is not equal to the alpha test value.
 
Method Summary
 int toOpenGL()
           
static TestFunction valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static TestFunction[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

ALWAYS

public static final TestFunction ALWAYS
Indicates pixels are always drawn irrespective of the alpha value. This effectively disables alpha testing.


NEVER

public static final TestFunction NEVER
Indicates pixels are never drawn irrespective of the alpha value.


EQUAL

public static final TestFunction EQUAL
Indicates pixels are drawn if the pixel alpha value is equal to the alpha test value.


NOT_EQUAL

public static final TestFunction NOT_EQUAL
Indicates pixels are drawn if the pixel alpha value is not equal to the alpha test value.


LESS

public static final TestFunction LESS
Indicates pixels are drawn if the pixel alpha value is less than the alpha test value.


LESS_OR_EQUAL

public static final TestFunction LESS_OR_EQUAL
Indicates pixels are drawn if the pixel alpha value is less than or equal to the alpha test value.


GREATER

public static final TestFunction GREATER
Indicates pixels are drawn if the pixel alpha value is greater than the alpha test value.


GREATER_OR_EQUAL

public static final TestFunction GREATER_OR_EQUAL
Indicates pixels are drawn if the pixel alpha value is greater than or equal to the alpha test value.

Method Detail

values

public static TestFunction[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (TestFunction c : TestFunction.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static TestFunction valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null

toOpenGL

public final int toOpenGL()