com.jme.scene
Enum Spatial.NormalsMode

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

public static enum Spatial.NormalsMode
extends java.lang.Enum<Spatial.NormalsMode>


Enum Constant Summary
AlwaysNormalize
          Tell the card to normalize any normals data we might give it for this Spatial.
Inherit
          Do whatever our parent does.
NormalizeIfScaled
          If this Spatial is scaled other than 1,1,1 then tell the card to normalize any normals data we might give it.
Off
          Do not send normal data to the card for this Spatial, even if we have some.
UseProvided
          Send through the normals currently set as-is.
 
Method Summary
static Spatial.NormalsMode valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static Spatial.NormalsMode[] 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

Inherit

public static final Spatial.NormalsMode Inherit
Do whatever our parent does. If no parent, we'll default to NormalizeIfScaled.


UseProvided

public static final Spatial.NormalsMode UseProvided
Send through the normals currently set as-is.


AlwaysNormalize

public static final Spatial.NormalsMode AlwaysNormalize
Tell the card to normalize any normals data we might give it for this Spatial.


NormalizeIfScaled

public static final Spatial.NormalsMode NormalizeIfScaled
If this Spatial is scaled other than 1,1,1 then tell the card to normalize any normals data we might give it.


Off

public static final Spatial.NormalsMode Off
Do not send normal data to the card for this Spatial, even if we have some.

Method Detail

values

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

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

valueOf

public static Spatial.NormalsMode 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