org.jagatoo.opengl.enums
Enum ColorTarget

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

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

Insert type comment here.


Enum Constant Summary
AMBIENT
          Specifies that per-vertex colors (if any) or color from ColoringAttributes replace the ambient material color
AMBIENT_AND_DIFFUSE
          Specifies that per-vertex colors (if any) or color from ColoringAttributes replace both the ambient and the diffuse material color
DIFFUSE
          Specifies that per-vertex colors (if any) or color from ColoringAttributes replace the diffuse material color
EMISSIVE
          Specifies that per-vertex colors (if any) or color from ColoringAttributes replace the emissive material color
NONE
          Disables use of per-vertex colors for replacement of any of the material color.
SPECULAR
          Specifies that per-vertex colors (if any) or color from ColoringAttributes replace the specular material color
 
Method Summary
 int toOpenGL()
           
static ColorTarget valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static ColorTarget[] 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

NONE

public static final ColorTarget NONE
Disables use of per-vertex colors for replacement of any of the material color.


AMBIENT

public static final ColorTarget AMBIENT
Specifies that per-vertex colors (if any) or color from ColoringAttributes replace the ambient material color


EMISSIVE

public static final ColorTarget EMISSIVE
Specifies that per-vertex colors (if any) or color from ColoringAttributes replace the emissive material color


DIFFUSE

public static final ColorTarget DIFFUSE
Specifies that per-vertex colors (if any) or color from ColoringAttributes replace the diffuse material color


SPECULAR

public static final ColorTarget SPECULAR
Specifies that per-vertex colors (if any) or color from ColoringAttributes replace the specular material color


AMBIENT_AND_DIFFUSE

public static final ColorTarget AMBIENT_AND_DIFFUSE
Specifies that per-vertex colors (if any) or color from ColoringAttributes replace both the ambient and the diffuse material color

Method Detail

values

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

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

valueOf

public static ColorTarget 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()