Enum Texture.TextureFilter

    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
      Linear
      Fetch four nearest texels that best maps to the pixel on screen.
      MipMap  
      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.
      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
      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.
      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.
      Nearest
      Fetch the nearest texel that best maps to the pixel on screen.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int getGLEnum()  
      boolean isMipMap()  
      static Texture.TextureFilter valueOf​(java.lang.String name)
      Returns the enum constant of this type with the specified name.
      static Texture.TextureFilter[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      • Methods inherited from class java.lang.Enum

        clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • Methods inherited from class java.lang.Object

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

      • 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.
      • 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.
    • Method Detail

      • values

        public static Texture.TextureFilter[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (Texture.TextureFilter c : Texture.TextureFilter.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static Texture.TextureFilter valueOf​(java.lang.String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null
      • isMipMap

        public boolean isMipMap()
      • getGLEnum

        public int getGLEnum()