com.jme.image
Enum Texture.ApplyMode

java.lang.Object
  extended by java.lang.Enum<Texture.ApplyMode>
      extended by com.jme.image.Texture.ApplyMode
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<Texture.ApplyMode>
Enclosing class:
Texture

public static enum Texture.ApplyMode
extends java.lang.Enum<Texture.ApplyMode>


Enum Constant Summary
Add
          Apply modifier adds two textures.
Blend
          Apply modifier that interpolates the color of the pixel with a blend color using the texture color, such that the final color value is Cv = (1 - Ct) * Cf + BlendColor * Ct Where Ct is the color of the texture and Cf is the initial pixel color.
Combine
          Apply modifier combines two textures based on the combine parameters set on this texture.
Decal
          Apply modifier that replaces the color values of the pixel but makes use of the alpha values.
Modulate
          Apply modifier multiples the color of the pixel with the texture color.
Replace
          Apply modifier that replaces the previous pixel color with the texture color.
 
Method Summary
static Texture.ApplyMode valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static Texture.ApplyMode[] 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

Replace

public static final Texture.ApplyMode Replace
Apply modifier that replaces the previous pixel color with the texture color.


Decal

public static final Texture.ApplyMode Decal
Apply modifier that replaces the color values of the pixel but makes use of the alpha values.


Modulate

public static final Texture.ApplyMode Modulate
Apply modifier multiples the color of the pixel with the texture color.


Blend

public static final Texture.ApplyMode Blend
Apply modifier that interpolates the color of the pixel with a blend color using the texture color, such that the final color value is Cv = (1 - Ct) * Cf + BlendColor * Ct Where Ct is the color of the texture and Cf is the initial pixel color.


Combine

public static final Texture.ApplyMode Combine
Apply modifier combines two textures based on the combine parameters set on this texture.


Add

public static final Texture.ApplyMode Add
Apply modifier adds two textures.

Method Detail

values

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

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

valueOf

public static Texture.ApplyMode 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