public enum TextureWrapMode extends java.lang.Enum<TextureWrapMode> implements GLEnum
Enum Constant and Description |
---|
CLAMP_TO_EDGE
This causes s or t coordinates to be clamped to the range [0, 1]
and is useful for preventing wrapping artifacts when mapping a
single image onto an object.
|
MIRRORED_REPEAT |
REPEAT
This causes the integer part of the s coordinate to be ignored;
the GL uses only the fractional part, thereby creating a
repeating pattern.
|
Modifier and Type | Method and Description |
---|---|
int |
getValue()
Gets the enum's numerical value.
|
static TextureWrapMode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static TextureWrapMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TextureWrapMode REPEAT
public static final TextureWrapMode CLAMP_TO_EDGE
public static final TextureWrapMode MIRRORED_REPEAT
public static TextureWrapMode[] values()
for (TextureWrapMode c : TextureWrapMode.values()) System.out.println(c);
public static TextureWrapMode 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 namejava.lang.NullPointerException
- if the argument is null