Package com.jme3.texture
Enum Class Texture.MagFilter
- All Implemented Interfaces:
Serializable
,Comparable<Texture.MagFilter>
,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 ConstantDescriptionIn 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.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. -
Method Summary
Modifier and TypeMethodDescriptionstatic Texture.MagFilter
Returns the enum constant of this class with the specified name.static Texture.MagFilter[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
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
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
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
-