Package com.ardor3d.renderer.state
Enum Class BlendState.DestinationFunction
java.lang.Object
java.lang.Enum<BlendState.DestinationFunction>
com.ardor3d.renderer.state.BlendState.DestinationFunction
- All Implemented Interfaces:
Serializable
,Comparable<BlendState.DestinationFunction>
,Constable
- Enclosing class:
BlendState
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionThe destination value of the blend function is the value of the constant color's alpha.The destination value of the blend function is the value of the constant color.The destination value of the blend function is the destination alpha value.The destination value of the blend function is all ones.The destination value of the blend function is 1 minus the value of the constant color's alpha. (1-Ac, 1-Ac, 1-Ac, 1-Ac) If color is not set, black with alpha = 0 is used.The destination value of the blend function is 1 minus the value of the constant color. (1-Rc, 1-Gc, 1-Bc, 1-Ac) If color is not set, black with alpha = 0 is used.The destination value of the blend function is 1 - the destination alpha value.The destination value of the blend function is 1 - the source alpha value.The destination value of the blend function is 1 - the source color.The destination value of the blend function is the source alpha value.The destination value of the blend function is the source color.The destination value of the blend function is all zeros. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns the enum constant of this class with the specified name.static BlendState.DestinationFunction[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
Zero
The destination value of the blend function is all zeros. -
One
The destination value of the blend function is all ones. -
SourceColor
The destination value of the blend function is the source color. -
OneMinusSourceColor
The destination value of the blend function is 1 - the source color. -
SourceAlpha
The destination value of the blend function is the source alpha value. -
OneMinusSourceAlpha
The destination value of the blend function is 1 - the source alpha value. -
DestinationAlpha
The destination value of the blend function is the destination alpha value. -
OneMinusDestinationAlpha
The destination value of the blend function is 1 - the destination alpha value. -
ConstantColor
The destination value of the blend function is the value of the constant color. (Rc, Gc, Bc, Ac) If not set, black with alpha = 0 is used. If not supported, falls back to One. -
OneMinusConstantColor
The destination value of the blend function is 1 minus the value of the constant color. (1-Rc, 1-Gc, 1-Bc, 1-Ac) If color is not set, black with alpha = 0 is used. If not supported, falls back to One. -
ConstantAlpha
The destination value of the blend function is the value of the constant color's alpha. (Ac, Ac, Ac, Ac) If not set, black with alpha = 0 is used. If not supported, falls back to One. -
OneMinusConstantAlpha
The destination value of the blend function is 1 minus the value of the constant color's alpha. (1-Ac, 1-Ac, 1-Ac, 1-Ac) If color is not set, black with alpha = 0 is used. If not supported, falls back to One.
-
-
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
-
usesConstantColor
public boolean usesConstantColor()
-