com.jme3.material
Enum FixedFuncBinding

java.lang.Object
  extended by java.lang.Enum<FixedFuncBinding>
      extended by com.jme3.material.FixedFuncBinding
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<FixedFuncBinding>

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

Fixed function binding is used to specify a binding for a MatParam in case that shaders are not supported on the system.


Enum Constant Summary
Color
          Specifies the color of the object.
MaterialAmbient
          Specifies the material ambient color.
MaterialDiffuse
          Specifies the material diffuse color.
MaterialShininess
          Specifies the material shininess value.
MaterialSpecular
          Specifies the material specular color.
UseVertexColor
          Use vertex color as an additional diffuse color, if lighting is enabled.
 
Method Summary
static FixedFuncBinding valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static FixedFuncBinding[] 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

MaterialAmbient

public static final FixedFuncBinding MaterialAmbient
Specifies the material ambient color. Same as GL_AMBIENT for OpenGL.


MaterialDiffuse

public static final FixedFuncBinding MaterialDiffuse
Specifies the material diffuse color. Same as GL_DIFFUSE for OpenGL.


MaterialSpecular

public static final FixedFuncBinding MaterialSpecular
Specifies the material specular color. Same as GL_SPECULAR for OpenGL


Color

public static final FixedFuncBinding Color
Specifies the color of the object.

Used only for non-lit materials.


MaterialShininess

public static final FixedFuncBinding MaterialShininess
Specifies the material shininess value. Same as GL_SHININESS for OpenGL.


UseVertexColor

public static final FixedFuncBinding UseVertexColor
Use vertex color as an additional diffuse color, if lighting is enabled. If lighting is disabled, vertex color is modulated with material color.

Method Detail

values

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

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

valueOf

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