Package com.jme3.material
Enum Class RenderState.BlendEquationAlpha
- All Implemented Interfaces:
Serializable
,Comparable<RenderState.BlendEquationAlpha>
,Constable
- Enclosing class:
- RenderState
BlendEquationAlpha
specifies the blending equation to
combine pixels for the alpha component.-
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 to be the same as the one defined byRenderState.blendEquation
.sSets the blend equation so that the result alpha is the maximum of the source alpha and destination alpha.Sets the blend equation so that the result alpha is the minimum of the source alpha and destination alpha.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 TypeMethodDescriptionReturns the enum constant of this class with the specified name.static RenderState.BlendEquationAlpha[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
InheritColor
Sets the blend equation to be the same as the one defined byRenderState.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
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 the result alpha is the minimum of the source alpha and destination alpha. 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
sSets the blend equation so that the result alpha is the maximum of the source alpha and destination alpha. 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
-