Enum MaterialPass.SceneBlend
- java.lang.Object
-
- java.lang.Enum<MaterialPass.SceneBlend>
-
- be.yildizgames.module.graphic.material.MaterialPass.SceneBlend
-
- All Implemented Interfaces:
Serializable,Comparable<MaterialPass.SceneBlend>
- Enclosing class:
- MaterialPass
public static enum MaterialPass.SceneBlend extends Enum<MaterialPass.SceneBlend>
Different options for scene blending transparency.- Author:
- Van den Borre Grégory
-
-
Enum Constant Summary
Enum Constants Enum Constant Description DEST_ALPHAThe existing pixel alpha value.DEST_COLORThe existing pixel color.NONENothing.ONEConstant value of 1.0.ONE_MINUS_DEST_ALPHA1 - (dest_alpha).ONE_MINUS_DEST_COLOR1 - (dest_colour).ONE_MINUS_SRC_ALPHA1 - (src_alpha).ONE_MINUS_SRC_COLOR1 - (src_colour).SRC_ALPHAThe texel alpha value.SRC_COLORThe texture pixel (texel) color.ZEROConstant value of 0.0.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static MaterialPass.SceneBlendvalueOf(String name)Returns the enum constant of this type with the specified name.static MaterialPass.SceneBlend[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ZERO
public static final MaterialPass.SceneBlend ZERO
Constant value of 0.0.
-
ONE
public static final MaterialPass.SceneBlend ONE
Constant value of 1.0.
-
DEST_COLOR
public static final MaterialPass.SceneBlend DEST_COLOR
The existing pixel color.
-
SRC_COLOR
public static final MaterialPass.SceneBlend SRC_COLOR
The texture pixel (texel) color.
-
ONE_MINUS_DEST_COLOR
public static final MaterialPass.SceneBlend ONE_MINUS_DEST_COLOR
1 - (dest_colour).
-
ONE_MINUS_SRC_COLOR
public static final MaterialPass.SceneBlend ONE_MINUS_SRC_COLOR
1 - (src_colour).
-
DEST_ALPHA
public static final MaterialPass.SceneBlend DEST_ALPHA
The existing pixel alpha value.
-
SRC_ALPHA
public static final MaterialPass.SceneBlend SRC_ALPHA
The texel alpha value.
-
ONE_MINUS_DEST_ALPHA
public static final MaterialPass.SceneBlend ONE_MINUS_DEST_ALPHA
1 - (dest_alpha).
-
ONE_MINUS_SRC_ALPHA
public static final MaterialPass.SceneBlend ONE_MINUS_SRC_ALPHA
1 - (src_alpha).
-
NONE
public static final MaterialPass.SceneBlend NONE
Nothing.
-
-
Method Detail
-
values
public static MaterialPass.SceneBlend[] 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 (MaterialPass.SceneBlend c : MaterialPass.SceneBlend.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static MaterialPass.SceneBlend valueOf(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:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
-