public static enum Texture.TextureFilter extends Enum<Texture.TextureFilter>
Enum Constant and 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.
|
Modifier and Type | Method and Description |
---|---|
int |
getGLEnum() |
boolean |
isMipMap() |
static Texture.TextureFilter |
valueOf(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.
|
public static final Texture.TextureFilter Nearest
public static final Texture.TextureFilter Linear
public static final Texture.TextureFilter MipMap
MipMapLinearLinear
public static final Texture.TextureFilter MipMapNearestNearest
public static final Texture.TextureFilter MipMapLinearNearest
public static final Texture.TextureFilter MipMapNearestLinear
public static final Texture.TextureFilter MipMapLinearLinear
public static Texture.TextureFilter[] values()
for (Texture.TextureFilter c : Texture.TextureFilter.values()) System.out.println(c);
public static Texture.TextureFilter valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic boolean isMipMap()
public int getGLEnum()
Copyright © 2020. All rights reserved.