Package com.jme3.material
Enum Class RenderState.BlendEquation
- All Implemented Interfaces:
Serializable
,Comparable<RenderState.BlendEquation>
,Constable
- Enclosing class:
- RenderState
BlendEquation
specifies the blending equation to combine
pixels.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionSets the blend equation so that the source and destination data are added.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.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.Same as Subtract, but the order is reversed (Dst - Src).Sets the blend equation so that the source and destination data are subtracted (Src - Dest). -
Method Summary
Modifier and TypeMethodDescriptionstatic RenderState.BlendEquation
Returns the enum constant of this class with the specified name.static RenderState.BlendEquation[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
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
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
Same as Subtract, but the order is reversed (Dst - Src). Clamps to [0,1] Falls back to Add if supportsSubtract is false. -
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
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 Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-