Package com.aspose.threed
Enum BlendFactor
- java.lang.Object
-
- java.lang.Enum<BlendFactor>
-
- com.aspose.threed.BlendFactor
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<BlendFactor>
public enum BlendFactor extends java.lang.Enum<BlendFactor>
Blend factor specify pixel arithmetic.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CONSTANT_ALPHA
The blend factor is vec4(c.a) where c is specified inRenderState.getBlendColor()
CONSTANT_COLOR
The blend factor is c where c is specified inRenderState.getBlendColor()
DST_ALPHA
The blend factor is vec4(dst.a)DST_COLOR
The blend factor is dst.rgbaONE
The blend factor is vec4(1)ONE_MINUS_CONSTANT_ALPHA
The blend factor is vec4(1 - c.a) where c is specified inRenderState.getBlendColor()
ONE_MINUS_CONSTANT_COLOR
The blend factor is vec4(1) - c where c is specified inRenderState.getBlendColor()
ONE_MINUS_DST_ALPHA
The blend factor is vec4(1 - dst.a)ONE_MINUS_DST_COLOR
The blend factor is vec4(1) - dst.rgbaONE_MINUS_SRC_ALPHA
The blend factor is vec4(1 - src.a)ONE_MINUS_SRC_COLOR
The blend factor is vec4(1) - src.rgbaSRC_ALPHA
The blend factor is vec4(src.a)SRC_ALPHA_SATURATE
The blend factor is min(src.a, 1 - dst.a)SRC_COLOR
The blend factor is src.rgbaZERO
The blend factor is vec4(0)
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static BlendFactor
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static BlendFactor[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ZERO
public static final BlendFactor ZERO
The blend factor is vec4(0)
-
ONE
public static final BlendFactor ONE
The blend factor is vec4(1)
-
SRC_COLOR
public static final BlendFactor SRC_COLOR
The blend factor is src.rgba
-
ONE_MINUS_SRC_COLOR
public static final BlendFactor ONE_MINUS_SRC_COLOR
The blend factor is vec4(1) - src.rgba
-
DST_COLOR
public static final BlendFactor DST_COLOR
The blend factor is dst.rgba
-
ONE_MINUS_DST_COLOR
public static final BlendFactor ONE_MINUS_DST_COLOR
The blend factor is vec4(1) - dst.rgba
-
SRC_ALPHA
public static final BlendFactor SRC_ALPHA
The blend factor is vec4(src.a)
-
ONE_MINUS_SRC_ALPHA
public static final BlendFactor ONE_MINUS_SRC_ALPHA
The blend factor is vec4(1 - src.a)
-
DST_ALPHA
public static final BlendFactor DST_ALPHA
The blend factor is vec4(dst.a)
-
ONE_MINUS_DST_ALPHA
public static final BlendFactor ONE_MINUS_DST_ALPHA
The blend factor is vec4(1 - dst.a)
-
CONSTANT_COLOR
public static final BlendFactor CONSTANT_COLOR
The blend factor is c where c is specified inRenderState.getBlendColor()
-
ONE_MINUS_CONSTANT_COLOR
public static final BlendFactor ONE_MINUS_CONSTANT_COLOR
The blend factor is vec4(1) - c where c is specified inRenderState.getBlendColor()
-
CONSTANT_ALPHA
public static final BlendFactor CONSTANT_ALPHA
The blend factor is vec4(c.a) where c is specified inRenderState.getBlendColor()
-
ONE_MINUS_CONSTANT_ALPHA
public static final BlendFactor ONE_MINUS_CONSTANT_ALPHA
The blend factor is vec4(1 - c.a) where c is specified inRenderState.getBlendColor()
-
SRC_ALPHA_SATURATE
public static final BlendFactor SRC_ALPHA_SATURATE
The blend factor is min(src.a, 1 - dst.a)
-
-
Method Detail
-
values
public static BlendFactor[] 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 (BlendFactor c : BlendFactor.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static BlendFactor 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 namejava.lang.NullPointerException
- if the argument is null
-
-