com.jme.scene.state
Enum MaterialState.ColorMaterial

java.lang.Object
  extended by java.lang.Enum<MaterialState.ColorMaterial>
      extended by com.jme.scene.state.MaterialState.ColorMaterial
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<MaterialState.ColorMaterial>
Enclosing class:
MaterialState

public static enum MaterialState.ColorMaterial
extends java.lang.Enum<MaterialState.ColorMaterial>


Enum Constant Summary
Ambient
          Geometry colors determine material ambient color.
AmbientAndDiffuse
          Geometry colors determine material ambient and diffuse colors.
Diffuse
          Geometry colors determine material diffuse color.
Emissive
          Geometry colors determine material emissive color.
None
          Geometry colors are ignored.
Specular
          Geometry colors determine material specular colors.
 
Method Summary
static MaterialState.ColorMaterial valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static MaterialState.ColorMaterial[] 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 MaterialState.ColorMaterial None
Geometry colors are ignored. This is default.


Ambient

public static final MaterialState.ColorMaterial Ambient
Geometry colors determine material ambient color.


Diffuse

public static final MaterialState.ColorMaterial Diffuse
Geometry colors determine material diffuse color.


AmbientAndDiffuse

public static final MaterialState.ColorMaterial AmbientAndDiffuse
Geometry colors determine material ambient and diffuse colors.


Specular

public static final MaterialState.ColorMaterial Specular
Geometry colors determine material specular colors.


Emissive

public static final MaterialState.ColorMaterial Emissive
Geometry colors determine material emissive color.

Method Detail

values

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

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

valueOf

public static MaterialState.ColorMaterial 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