public static enum RenderState.BlendFunc extends java.lang.Enum<RenderState.BlendFunc>
BlendFunc
defines the blending functions for use with
BlendMode.Custom
.
Source color components are referred to as (R_s0, G_s0, B_s0, A_s0).
Destination color components are referred to as (R_d, G_d, B_d, A_d).Enum Constant and Description |
---|
Dst_Alpha
RGB Factor (A_d, A_d, A_d), Alpha Factor (A_d)
|
Dst_Color
RGB Factor (R_d, G_d, B_d), Alpha Factor (A_d)
|
One
RGB Factor (1, 1, 1), Alpha Factor (1)
|
One_Minus_Dst_Alpha
RGB Factor (1-A_d, 1-A_d, 1-A_d), Alpha Factor (1-A_d)
|
One_Minus_Dst_Color
RGB Factor (1-R_d, 1-G_d, 1-B_d), Alpha Factor (1-A_d)
|
One_Minus_Src_Alpha
RGB Factor (1-A_s0, 1-A_s0, 1-A_s0), Alpha Factor (1-A_s0)
|
One_Minus_Src_Color
RGB Factor (1-R_s0, 1-G_s0, 1-B_s0), Alpha Factor (1-A_s0)
|
Src_Alpha
RGB Factor (A_s0, A_s0, A_s0), Alpha Factor (A_s0)
|
Src_Alpha_Saturate
RGB Factor (i, i, i), Alpha Factor (1)
|
Src_Color
RGB Factor (R_s0, G_s0, B_s0), Alpha Factor (A_s0)
|
Zero
RGB Factor (0, 0, 0), Alpha Factor (0)
|
Modifier and Type | Method and Description |
---|---|
static RenderState.BlendFunc |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static RenderState.BlendFunc[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final RenderState.BlendFunc Zero
public static final RenderState.BlendFunc One
public static final RenderState.BlendFunc Src_Color
public static final RenderState.BlendFunc One_Minus_Src_Color
public static final RenderState.BlendFunc Dst_Color
public static final RenderState.BlendFunc One_Minus_Dst_Color
public static final RenderState.BlendFunc Src_Alpha
public static final RenderState.BlendFunc One_Minus_Src_Alpha
public static final RenderState.BlendFunc Dst_Alpha
public static final RenderState.BlendFunc One_Minus_Dst_Alpha
public static final RenderState.BlendFunc Src_Alpha_Saturate
public static RenderState.BlendFunc[] values()
for (RenderState.BlendFunc c : RenderState.BlendFunc.values()) System.out.println(c);
public static RenderState.BlendFunc valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null