Enum TextureUnit.ColorOperation
- java.lang.Object
-
- java.lang.Enum<TextureUnit.ColorOperation>
-
- be.yildizgames.module.graphic.material.TextureUnit.ColorOperation
-
- All Implemented Interfaces:
Serializable,Comparable<TextureUnit.ColorOperation>
- Enclosing class:
- TextureUnit
public static enum TextureUnit.ColorOperation extends Enum<TextureUnit.ColorOperation>
Possible color operations.- Author:
- Van den Borre Grégory
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ADDAdd color components together.ALPHA_BLENDBlend based on texture alpha.MODULATEMultiply color components together.REPLACEReplace all color with texture with no adjustment.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static TextureUnit.ColorOperationvalueOf(String name)Returns the enum constant of this type with the specified name.static TextureUnit.ColorOperation[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
REPLACE
public static final TextureUnit.ColorOperation REPLACE
Replace all color with texture with no adjustment.
-
ADD
public static final TextureUnit.ColorOperation ADD
Add color components together.
-
MODULATE
public static final TextureUnit.ColorOperation MODULATE
Multiply color components together.
-
ALPHA_BLEND
public static final TextureUnit.ColorOperation ALPHA_BLEND
Blend based on texture alpha.
-
-
Method Detail
-
values
public static TextureUnit.ColorOperation[] 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.ColorOperation c : TextureUnit.ColorOperation.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.ColorOperation 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
-
-