org.xith3d.render.states
Enum StateTypes

java.lang.Object
  extended by java.lang.Enum<StateTypes>
      extended by org.xith3d.render.states.StateTypes
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<StateTypes>

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

This enum can be used to initialized a StatePriorities instance, which must be passed to a StateRenderBinSorter or OrderedStateRenderBinSorter.

The order if the fields is important, since it defines the order in which states are applied to the GL, which is important.


Enum Constant Summary
COLORING
           
FOG
           
LIGHTING
           
LINE_ATTRIBUTES
           
MATERIAL
           
POINT_ATTRIBUTES
           
POLYGON_ATTRIBUTES
           
RENDERING_ATTRIBUTES
           
SHADER_PROGRAM
           
TEXTURE_UNIT0
           
TEXTURE_UNIT1
           
TEXTURE_UNIT2
           
TEXTURE_UNIT3
           
TEXTURE_UNIT4
           
TEXTURE_UNIT5
           
TEXTURE_UNIT6
           
TEXTURE_UNIT7
           
 
Method Summary
 int getInternalType()
           
static void init()
          This method can be called from anywhere to initialize the state-unit-types.
static StateTypes valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static StateTypes[] 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

COLORING

public static final StateTypes COLORING

SHADER_PROGRAM

public static final StateTypes SHADER_PROGRAM

TEXTURE_UNIT0

public static final StateTypes TEXTURE_UNIT0

TEXTURE_UNIT1

public static final StateTypes TEXTURE_UNIT1

TEXTURE_UNIT2

public static final StateTypes TEXTURE_UNIT2

TEXTURE_UNIT3

public static final StateTypes TEXTURE_UNIT3

TEXTURE_UNIT4

public static final StateTypes TEXTURE_UNIT4

TEXTURE_UNIT5

public static final StateTypes TEXTURE_UNIT5

TEXTURE_UNIT6

public static final StateTypes TEXTURE_UNIT6

TEXTURE_UNIT7

public static final StateTypes TEXTURE_UNIT7

LIGHTING

public static final StateTypes LIGHTING

FOG

public static final StateTypes FOG

MATERIAL

public static final StateTypes MATERIAL

POLYGON_ATTRIBUTES

public static final StateTypes POLYGON_ATTRIBUTES

LINE_ATTRIBUTES

public static final StateTypes LINE_ATTRIBUTES

POINT_ATTRIBUTES

public static final StateTypes POINT_ATTRIBUTES

RENDERING_ATTRIBUTES

public static final StateTypes RENDERING_ATTRIBUTES
Method Detail

values

public static StateTypes[] 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 (StateTypes c : StateTypes.values())
    System.out.println(c);

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

valueOf

public static StateTypes 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

getInternalType

public final int getInternalType()

init

public static final void init()
This method can be called from anywhere to initialize the state-unit-types.