com.jme.scene.state
Enum BlendState.BlendEquation

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

public static enum BlendState.BlendEquation
extends java.lang.Enum<BlendState.BlendEquation>


Enum Constant Summary
Add
          Sets the blend equation so that the source and destination data are added.
Max
          sets the blend equation so that each component of the result color is the maximum of the corresponding components of the source and destination colors.
Min
          sets the blend equation so that each component of the result color is the minimum of the corresponding components of the source and destination colors.
ReverseSubtract
          Same as Subtract, but the order is reversed (Dst - Src).
Subtract
          Sets the blend equation so that the source and destination data are subtracted (Src - Dest).
 
Method Summary
static BlendState.BlendEquation valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static BlendState.BlendEquation[] 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

Add

public static final BlendState.BlendEquation Add
Sets the blend equation so that the source and destination data are added. (Default) Clamps to [0,1] Useful for things like antialiasing and transparency.


Subtract

public static final BlendState.BlendEquation Subtract
Sets the blend equation so that the source and destination data are subtracted (Src - Dest). Clamps to [0,1] Falls back to Add if supportsSubtract is false.


ReverseSubtract

public static final BlendState.BlendEquation ReverseSubtract
Same as Subtract, but the order is reversed (Dst - Src). Clamps to [0,1] Falls back to Add if supportsSubtract is false.


Min

public static final BlendState.BlendEquation Min
sets the blend equation so that each component of the result color is the minimum of the corresponding components of the source and destination colors. This and Max are useful for applications that analyze image data (image thresholding against a constant color, for example). Falls back to Add if supportsMinMax is false.


Max

public static final BlendState.BlendEquation Max
sets the blend equation so that each component of the result color is the maximum of the corresponding components of the source and destination colors. This and Min are useful for applications that analyze image data (image thresholding against a constant color, for example). Falls back to Add if supportsMinMax is false.

Method Detail

values

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

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

valueOf

public static BlendState.BlendEquation 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