|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
java.lang.Objectjava.lang.Enum<TextureMinFilter>
org.jagatoo.opengl.enums.TextureMinFilter
public enum TextureMinFilter
Insert type comment here.
| Enum Constant Summary | |
|---|---|
ANISOTROPIC_16
Uses TRILINEAR as base filter and additionally applies
a 16x anisotropic filter, if available. |
|
ANISOTROPIC_2
Uses TRILINEAR as base filter and additionally applies
a 2x anisotropic filter, if available. |
|
ANISOTROPIC_4
Uses TRILINEAR as base filter and additionally applies
a 4x anisotropic filter, if available. |
|
ANISOTROPIC_8
Uses TRILINEAR as base filter and additionally applies
an 8x anisotropic filter, if available. |
|
BILINEAR
Performs a bilinear interpolation on the four nearest texels in the level 0 texture map. |
|
POINT
Selects the nearest texel in the level 0 texture map. |
|
TRILINEAR
Performs a trilinear interpolation of the texels between four texels each from the two nearest mipmap levels. |
|
| Field Summary | |
|---|---|
static TextureMinFilter |
FASTEST
Uses the fastest available method for processing geometry. |
static TextureMinFilter |
NICER
Uses the nicest available method for processing geometry (excluding anisotropy). |
static TextureMinFilter |
NICEST
Uses the nicest available method for processing geometry. |
| Method Summary | |
|---|---|
int |
getAnisotropicLevel()
|
int |
getOpenGLBaseFilter(boolean mipmapping)
|
static TextureMinFilter |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static TextureMinFilter[] |
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 |
|---|
public static final TextureMinFilter POINT
Uses the value of the texture element that is nearest (in Manhattan distance) to the center of the pixel being textured.
public static final TextureMinFilter BILINEAR
Uses the weighted average of the four texture elements that are closest to the center of the pixel being textured. These can include border texture elements, depending on the values of GL_TEXTURE_WRAP_S and GL_TEXTURE_WRAP_T, and on the exact mapping.
public static final TextureMinFilter TRILINEAR
Chooses the two mipmaps that most closely match the size of the pixel being textured and uses the BASE_LEVEL_LINEAR criterion (a weighted average of the four texture elements that are closest to the center of the pixel) to produce a texture value from each mipmap. The final texture value is a weighted average of those two values.
Falls back to BILINEAR, if mipmapping is not used!
public static final TextureMinFilter ANISOTROPIC_2
TRILINEAR as base filter and additionally applies
a 2x anisotropic filter, if available.
Falls back to TRILINEAR only, if not available.
public static final TextureMinFilter ANISOTROPIC_4
TRILINEAR as base filter and additionally applies
a 4x anisotropic filter, if available.
Falls back to ANISOTROPIC_2, if 4x is not available
and to TRILINEAR only, if no anisotropic filter is available.
public static final TextureMinFilter ANISOTROPIC_8
TRILINEAR as base filter and additionally applies
an 8x anisotropic filter, if available.
Falls back to lower anisotropics, if 8x is not available
and to TRILINEAR only, if no anisotropic filter is available.
public static final TextureMinFilter ANISOTROPIC_16
TRILINEAR as base filter and additionally applies
a 16x anisotropic filter, if available.
Falls back to lower anisotropics, if 16x is not available
and to TRILINEAR only, if no anisotropic filter is available.
| Field Detail |
|---|
public static final TextureMinFilter FASTEST
public static final TextureMinFilter NICER
public static final TextureMinFilter NICEST
| Method Detail |
|---|
public static TextureMinFilter[] values()
for (TextureMinFilter c : TextureMinFilter.values()) System.out.println(c);
public static TextureMinFilter valueOf(java.lang.String name)
name - the name of the enum constant to be returned.
java.lang.IllegalArgumentException - if this enum type has no constant
with the specified name
java.lang.NullPointerException - if the argument is nullpublic final int getOpenGLBaseFilter(boolean mipmapping)
public final int getAnisotropicLevel()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||