Package com.ardor3d.renderer.state
Enum Class BlendState.SourceFunction
- All Implemented Interfaces:
Serializable
,Comparable<BlendState.SourceFunction>
,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 source value of the blend function is the value of the constant color's alpha.The source value of the blend function is the value of the constant color.The source value of the blend function is the destination alpha.The source value of the blend function is the destination color.The source value of the blend function is all ones.The source 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 source 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 source value of the blend function is 1 - the destination alpha.The source value of the blend function is 1 - the destination color.The source value of the blend function is 1 - the source alpha value.The source value of the blend function is the source alpha value.The source value of the blend function is the minimum of alpha or 1 - alpha.The source value of the blend function is all zeros. -
Method Summary
Modifier and TypeMethodDescriptionboolean
static BlendState.SourceFunction
Returns the enum constant of this class with the specified name.static BlendState.SourceFunction[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
Zero
The source value of the blend function is all zeros. -
One
The source value of the blend function is all ones. -
DestinationColor
The source value of the blend function is the destination color. -
OneMinusDestinationColor
The source value of the blend function is 1 - the destination color. -
SourceAlpha
The source value of the blend function is the source alpha value. -
OneMinusSourceAlpha
The source value of the blend function is 1 - the source alpha value. -
DestinationAlpha
The source value of the blend function is the destination alpha. -
OneMinusDestinationAlpha
The source value of the blend function is 1 - the destination alpha. -
SourceAlphaSaturate
The source value of the blend function is the minimum of alpha or 1 - alpha. -
ConstantColor
The source 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 source 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 source 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 source 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()
-