Enum MaterialPass.Transparency
- java.lang.Object
-
- java.lang.Enum<MaterialPass.Transparency>
-
- be.yildizgames.module.graphic.material.MaterialPass.Transparency
-
- All Implemented Interfaces:
Serializable,Comparable<MaterialPass.Transparency>
- Enclosing class:
- MaterialPass
public static enum MaterialPass.Transparency extends Enum<MaterialPass.Transparency>
The transparency can be computed in different ways, they are exposed in this enum.- Author:
- Van den Borre Grégory
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static MaterialPass.TransparencyvalueOf(String name)Returns the enum constant of this type with the specified name.static MaterialPass.Transparency[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ALPHA
public static final MaterialPass.Transparency ALPHA
Use this if the transparent image contains an alpha channel.
-
COLOR
public static final MaterialPass.Transparency COLOR
Use this if the image contains no alpha channel, transparency will be based on the image color.
-
NONE
public static final MaterialPass.Transparency NONE
No transparent capability.
-
-
Method Detail
-
values
public static MaterialPass.Transparency[] 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.Transparency c : MaterialPass.Transparency.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.Transparency 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
-
-