Enum Class Texture.MagFilter

java.lang.Object
java.lang.Enum<Texture.MagFilter>
com.jme3.texture.Texture.MagFilter
All Implemented Interfaces:
Serializable, Comparable<Texture.MagFilter>, Constable
Enclosing class:
Texture

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

    • Nearest

      public static final Texture.MagFilter Nearest
      Nearest neighbor interpolation is the fastest and crudest filtering mode - it simply uses the color of the texel closest to the pixel center for the pixel color. While fast, this results in texture 'blockiness' during magnification. (GL equivalent: GL_NEAREST)
    • Bilinear

      public static final Texture.MagFilter Bilinear
      In this mode the four nearest texels to the pixel center are sampled (at the closest mipmap level), and their colors are combined by weighted average according to distance. This removes the 'blockiness' seen during magnification, as there is now a smooth gradient of color change from one texel to the next, instead of an abrupt jump as the pixel center crosses the texel boundary. (GL equivalent: GL_LINEAR)
  • Method Details

    • values

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