com.jme3.texture
列挙型 Texture.MagFilter
java.lang.Object
java.lang.Enum<Texture.MagFilter>
com.jme3.texture.Texture.MagFilter
- すべての実装されたインタフェース:
- java.io.Serializable, java.lang.Comparable<Texture.MagFilter>
- 含まれているクラス:
- Texture
public static enum Texture.MagFilter
- extends java.lang.Enum<Texture.MagFilter>
列挙型定数の概要 |
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. |
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. |
クラス java.lang.Enum から継承されたメソッド |
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
クラス java.lang.Object から継承されたメソッド |
getClass, notify, notifyAll, wait, wait, wait |
Nearest
public static final Texture.MagFilter 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
public static final Texture.MagFilter 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)
values
public static Texture.MagFilter[] values()
- この列挙型の定数を含む配列を宣言されている順序で返します。
このメソッドは次のようにして定数を反復するために使用できます:
for (Texture.MagFilter c : Texture.MagFilter.values())
System.out.println(c);
- 戻り値:
- この列挙型の定数を宣言されている順序で含む配列
valueOf
public static Texture.MagFilter valueOf(java.lang.String name)
- 指定した名前を持つこの型の列挙型定数を返します。
文字列は、この型の列挙型定数を宣言するのに使用した識別子と厳密に
一致している必要があります (余分な空白文字を含めることはできません)。
- パラメータ:
name
- 返される列挙型定数の名前
- 戻り値:
- 指定された名前を持つ列挙型定数
- 例外:
java.lang.IllegalArgumentException
- 指定された名前を持つ定数を
この列挙型が持っていない場合
java.lang.NullPointerException
- 引数が null の場合