Package arc.graphics

Enum Class Texture.TextureFilter

java.lang.Object
java.lang.Enum<Texture.TextureFilter>
arc.graphics.Texture.TextureFilter
All Implemented Interfaces:
Serializable, Comparable<Texture.TextureFilter>, Constable
Enclosing class:
Texture

public static enum Texture.TextureFilter extends Enum<Texture.TextureFilter>
  • Enum Constant Details

    • nearest

      public static final Texture.TextureFilter nearest
      Fetch the nearest texel that best maps to the pixel on screen.
    • linear

      public static final Texture.TextureFilter linear
      Fetch four nearest texels that best maps to the pixel on screen.
    • mipMap

      public static final Texture.TextureFilter mipMap
      See Also:
    • mipMapNearestNearest

      public static final Texture.TextureFilter mipMapNearestNearest
      Fetch the best fitting image from the mip map chain based on the pixel/texel ratio and then sample the texels with a nearest filter.
    • mipMapLinearNearest

      public static final Texture.TextureFilter mipMapLinearNearest
      Fetch the best fitting image from the mip map chain based on the pixel/texel ratio and then sample the texels with a Linear filter.
    • mipMapNearestLinear

      public static final Texture.TextureFilter mipMapNearestLinear
      Fetch the two best fitting images from the mip map chain and then sample the nearest texel from each of the two images, combining them to the final output pixel.
    • mipMapLinearLinear

      public static final Texture.TextureFilter mipMapLinearLinear
      Fetch the two best fitting images from the mip map chain and then sample the four nearest texels from each of the two images, combining them to the final output pixel.
  • Field Details

  • Method Details

    • values

      public static Texture.TextureFilter[] 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.TextureFilter 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
    • isMipMap

      public boolean isMipMap()