Package com.ardor3d.image
Enum Class Texture.ApplyMode
- All Implemented Interfaces:
Serializable
,Comparable<Texture.ApplyMode>
,Constable
- Enclosing class:
Texture
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionApply modifier adds two textures.Apply modifier that interpolates the color of the pixel with a blend color using the texture color, such that the final color value is Cv = (1 - Ct) * Cf + BlendColor * Ct Where Ct is the color of the texture and Cf is the initial pixel color.Apply modifier combines two textures based on the combine parameters set on this texture.Apply modifier that replaces the color values of the pixel but makes use of the alpha values.Apply modifier multiples the color of the pixel with the texture color.Apply modifier that replaces the previous pixel color with the texture color. -
Method Summary
Modifier and TypeMethodDescriptionstatic Texture.ApplyMode
Returns the enum constant of this class with the specified name.static Texture.ApplyMode[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
Replace
Apply modifier that replaces the previous pixel color with the texture color. -
Decal
Apply modifier that replaces the color values of the pixel but makes use of the alpha values. -
Modulate
Apply modifier multiples the color of the pixel with the texture color. -
Blend
Apply modifier that interpolates the color of the pixel with a blend color using the texture color, such that the final color value is Cv = (1 - Ct) * Cf + BlendColor * Ct Where Ct is the color of the texture and Cf is the initial pixel color. -
Combine
Apply modifier combines two textures based on the combine parameters set on this texture. -
Add
Apply modifier adds two textures.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException
- if the argument is null
-