Package arc.graphics
Enum Class Texture.TextureFilter
- All Implemented Interfaces:
Serializable
,Comparable<Texture.TextureFilter>
,Constable
- Enclosing class:
- Texture
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionFetch four nearest texels that best maps to the pixel on screen.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.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.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.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.Fetch the nearest texel that best maps to the pixel on screen. -
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
isMipMap()
static Texture.TextureFilter
Returns the enum constant of this class with the specified name.static Texture.TextureFilter[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
nearest
Fetch the nearest texel that best maps to the pixel on screen. -
linear
Fetch four nearest texels that best maps to the pixel on screen. -
mipMap
- See Also:
-
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
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. -
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
-
all
-
glEnum
public final int glEnum
-
-
Method Details
-
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
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 nameNullPointerException
- if the argument is null
-
isMipMap
public boolean isMipMap()
-