Enum Class BlendState.SourceFunction

java.lang.Object
java.lang.Enum<BlendState.SourceFunction>
com.ardor3d.renderer.state.BlendState.SourceFunction
All Implemented Interfaces:
Serializable, Comparable<BlendState.SourceFunction>, Constable
Enclosing class:
BlendState

public static enum BlendState.SourceFunction extends Enum<BlendState.SourceFunction>
  • Enum Constant Details

    • Zero

      public static final BlendState.SourceFunction Zero
      The source value of the blend function is all zeros.
    • One

      public static final BlendState.SourceFunction One
      The source value of the blend function is all ones.
    • DestinationColor

      public static final BlendState.SourceFunction DestinationColor
      The source value of the blend function is the destination color.
    • OneMinusDestinationColor

      public static final BlendState.SourceFunction OneMinusDestinationColor
      The source value of the blend function is 1 - the destination color.
    • SourceAlpha

      public static final BlendState.SourceFunction SourceAlpha
      The source value of the blend function is the source alpha value.
    • OneMinusSourceAlpha

      public static final BlendState.SourceFunction OneMinusSourceAlpha
      The source value of the blend function is 1 - the source alpha value.
    • DestinationAlpha

      public static final BlendState.SourceFunction DestinationAlpha
      The source value of the blend function is the destination alpha.
    • OneMinusDestinationAlpha

      public static final BlendState.SourceFunction OneMinusDestinationAlpha
      The source value of the blend function is 1 - the destination alpha.
    • SourceAlphaSaturate

      public static final BlendState.SourceFunction SourceAlphaSaturate
      The source value of the blend function is the minimum of alpha or 1 - alpha.
    • ConstantColor

      public static final BlendState.SourceFunction ConstantColor
      The source value of the blend function is the value of the constant color. (Rc, Gc, Bc, Ac) If not set, black with alpha = 0 is used. If not supported, falls back to One.
    • OneMinusConstantColor

      public static final BlendState.SourceFunction OneMinusConstantColor
      The source value of the blend function is 1 minus the value of the constant color. (1-Rc, 1-Gc, 1-Bc, 1-Ac) If color is not set, black with alpha = 0 is used. If not supported, falls back to One.
    • ConstantAlpha

      public static final BlendState.SourceFunction ConstantAlpha
      The source value of the blend function is the value of the constant color's alpha. (Ac, Ac, Ac, Ac) If not set, black with alpha = 0 is used. If not supported, falls back to One.
    • OneMinusConstantAlpha

      public static final BlendState.SourceFunction OneMinusConstantAlpha
      The source value of the blend function is 1 minus the value of the constant color's alpha. (1-Ac, 1-Ac, 1-Ac, 1-Ac) If color is not set, black with alpha = 0 is used. If not supported, falls back to One.
  • Method Details

    • values

      public static BlendState.SourceFunction[] 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 BlendState.SourceFunction 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
    • usesConstantColor

      public boolean usesConstantColor()