|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<Texture.WrapMode>
com.jme.image.Texture.WrapMode
public static enum Texture.WrapMode
Enum Constant Summary | |
---|---|
BorderClamp
coordinate will be clamped to the range [-1/(2N), 1 + 1/(2N)] where N is the size of the texture in the direction of clamping. |
|
Clamp
coordinate will be clamped to [0,1] |
|
EdgeClamp
coordinate will be clamped to the range [1/(2N), 1 - 1/(2N)] where N is the size of the texture in the direction of clamping. |
|
MirrorBorderClamp
Wrap mode MIRROR_CLAMP_TO_BORDER_EXT mirrors and clamps to border the texture coordinate, where mirroring and clamping to border a value f computes: mirrorClampToBorder(f) = min(1+1/(2*N), max(1/(2*N), abs(f)))
where N is the size of the one-, two-, or three-dimensional texture
image in the direction of wrapping." (Introduced after OpenGL1.4)
Falls back on BorderClamp if not supported. |
|
MirrorClamp
mirrors and clamps the texture coordinate, where mirroring and clamping a value f computes: mirrorClamp(f) = min(1, max(1/(2*N),
abs(f))) where N
is the size of the one-, two-, or three-dimensional texture image in
the direction of wrapping. |
|
MirrorEdgeClamp
mirrors and clamps to edge the texture coordinate, where mirroring and clamping to edge a value f computes: mirrorClampToEdge(f) = min(1-1/(2*N), max(1/(2*N), abs(f)))
where N is the size of the one-, two-, or three-dimensional texture
image in the direction of wrapping. |
|
MirroredRepeat
Only the fractional portion of the coordinate is considered, but if the integer portion is odd, we'll use 1 - the fractional portion. |
|
Repeat
Only the fractional portion of the coordinate is considered. |
Method Summary | |
---|---|
static Texture.WrapMode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static Texture.WrapMode[] |
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 Texture.WrapMode Repeat
public static final Texture.WrapMode MirroredRepeat
public static final Texture.WrapMode Clamp
public static final Texture.WrapMode MirrorClamp
mirrorClamp(f) = min(1, max(1/(2*N),
abs(f)))
where N
is the size of the one-, two-, or three-dimensional texture image in
the direction of wrapping. (Introduced after OpenGL1.4) Falls back on
Clamp if not supported.
public static final Texture.WrapMode BorderClamp
public static final Texture.WrapMode MirrorBorderClamp
mirrorClampToBorder(f) = min(1+1/(2*N), max(1/(2*N), abs(f)))
where N is the size of the one-, two-, or three-dimensional texture
image in the direction of wrapping." (Introduced after OpenGL1.4)
Falls back on BorderClamp if not supported.
public static final Texture.WrapMode EdgeClamp
public static final Texture.WrapMode MirrorEdgeClamp
mirrorClampToEdge(f) = min(1-1/(2*N), max(1/(2*N), abs(f)))
where N is the size of the one-, two-, or three-dimensional texture
image in the direction of wrapping. (Introduced after OpenGL1.4)
Falls back on EdgeClamp if not supported.
Method Detail |
---|
public static Texture.WrapMode[] values()
for (Texture.WrapMode c : Texture.WrapMode.values()) System.out.println(c);
public static Texture.WrapMode 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 null
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |