com.jme.scene
Enum Spatial.TextureCombineMode

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

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

Describes how to combine textures from ancestor texturestates when an updateRenderState is called on a Spatial.

Author:
Joshua Slack

Enum Constant Summary
CombineClosest
          Combine textures starting from the given Spatial and working towards the root.
CombineClosestEnabled
          Similar to CombineClosest, but if a disabled state is encountered, it will stop combining at that point.
CombineFirst
          Combine textures starting from the root node and working towards the given Spatial.
Inherit
          Inherit mode from parent.
Off
          When updating render states, turn off texturing for this spatial.
Replace
          Do not combine textures, just use the most recent texture state.
 
Method Summary
static Spatial.TextureCombineMode valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static Spatial.TextureCombineMode[] 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

Off

public static final Spatial.TextureCombineMode Off
When updating render states, turn off texturing for this spatial.


CombineFirst

public static final Spatial.TextureCombineMode CombineFirst
Combine textures starting from the root node and working towards the given Spatial. Ignore disabled states.


CombineClosest

public static final Spatial.TextureCombineMode CombineClosest
Combine textures starting from the given Spatial and working towards the root. Ignore disabled states. (Default)


CombineClosestEnabled

public static final Spatial.TextureCombineMode CombineClosestEnabled
Similar to CombineClosest, but if a disabled state is encountered, it will stop combining at that point.


Inherit

public static final Spatial.TextureCombineMode Inherit
Inherit mode from parent.


Replace

public static final Spatial.TextureCombineMode Replace
Do not combine textures, just use the most recent texture state.

Method Detail

values

public static Spatial.TextureCombineMode[] 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.TextureCombineMode c : Spatial.TextureCombineMode.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.TextureCombineMode 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