Enum TextureUnit.LayerBlendSource
- java.lang.Object
-
- java.lang.Enum<TextureUnit.LayerBlendSource>
-
- be.yildizgames.module.graphic.material.TextureUnit.LayerBlendSource
-
- All Implemented Interfaces:
Serializable,Comparable<TextureUnit.LayerBlendSource>
- Enclosing class:
- TextureUnit
public static enum TextureUnit.LayerBlendSource extends Enum<TextureUnit.LayerBlendSource>
Possible layer blend sources.- Author:
- Van den Borre Grégory
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CURRENTThe color as built up from previous stages.DIFFUSEThe interpolated diffuse color from the vertices.MANUALThe color supplied manually as a separate argument.SPECULARThe interpolated specular color from the vertices.TEXTUREThe color derived from the texture assigned to this layer.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static TextureUnit.LayerBlendSourcevalueOf(String name)Returns the enum constant of this type with the specified name.static TextureUnit.LayerBlendSource[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
CURRENT
public static final TextureUnit.LayerBlendSource CURRENT
The color as built up from previous stages.
-
TEXTURE
public static final TextureUnit.LayerBlendSource TEXTURE
The color derived from the texture assigned to this layer.
-
DIFFUSE
public static final TextureUnit.LayerBlendSource DIFFUSE
The interpolated diffuse color from the vertices.
-
SPECULAR
public static final TextureUnit.LayerBlendSource SPECULAR
The interpolated specular color from the vertices.
-
MANUAL
public static final TextureUnit.LayerBlendSource MANUAL
The color supplied manually as a separate argument.
-
-
Method Detail
-
values
public static TextureUnit.LayerBlendSource[] 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 (TextureUnit.LayerBlendSource c : TextureUnit.LayerBlendSource.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static TextureUnit.LayerBlendSource 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
-
-