Enum Class TextureMode

java.lang.Object
java.lang.Enum<TextureMode>
com.blackrook.gloop.opengl.enums.TextureMode
All Implemented Interfaces:
Serializable, Comparable<TextureMode>, java.lang.constant.Constable

public enum TextureMode extends Enum<TextureMode>
Texture environment mode constants.
Author:
Matthew Tropiano
  • Enum Constant Details

    • DECAL

      public static final TextureMode DECAL
    • REPLACE

      public static final TextureMode REPLACE
      Texels replace fragment information.
    • MODULATE

      public static final TextureMode MODULATE
      Texels are multiplied with fragment color/material information.
    • BLEND

      public static final TextureMode BLEND
      Texels are blended with fragment color/material information using the current blend function.
    • ADD

      public static final TextureMode ADD
      Texels are added to fragment color/material information.
  • Field Details

    • glValue

      public final int glValue
  • Method Details

    • values

      public static TextureMode[] 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 TextureMode 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