Enum Class Texture.ApplyMode

java.lang.Object
java.lang.Enum<Texture.ApplyMode>
com.ardor3d.image.Texture.ApplyMode
All Implemented Interfaces:
Serializable, Comparable<Texture.ApplyMode>, Constable
Enclosing class:
Texture

public static enum Texture.ApplyMode extends Enum<Texture.ApplyMode>
  • Nested Class Summary

    Nested classes/interfaces inherited from class java.lang.Enum

    Enum.EnumDesc<E extends Enum<E>>
  • Enum Constant Summary

    Enum Constants
    Enum Constant
    Description
    Apply 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 Type
    Method
    Description
    Returns the enum constant of this class with the specified name.
    Returns an array containing the constants of this enum class, in the order they are declared.

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Enum Constant Details

    • Replace

      public static final Texture.ApplyMode Replace
      Apply modifier that replaces the previous pixel color with the texture color.
    • Decal

      public static final Texture.ApplyMode Decal
      Apply modifier that replaces the color values of the pixel but makes use of the alpha values.
    • Modulate

      public static final Texture.ApplyMode Modulate
      Apply modifier multiples the color of the pixel with the texture color.
    • Blend

      public static final Texture.ApplyMode 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

      public static final Texture.ApplyMode Combine
      Apply modifier combines two textures based on the combine parameters set on this texture.
    • Add

      public static final Texture.ApplyMode Add
      Apply modifier adds two textures.
  • Method Details

    • values

      public static Texture.ApplyMode[] 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

      public static Texture.ApplyMode valueOf(String name)
      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 name
      NullPointerException - if the argument is null