com.neovisionaries.android.opengl
Enum WrapMode

java.lang.Object
  extended by java.lang.Enum<WrapMode>
      extended by com.neovisionaries.android.opengl.WrapMode
All Implemented Interfaces:
Serializable, Comparable<WrapMode>

public enum WrapMode
extends Enum<WrapMode>

Wrap modes for GL_TEXTURE_WRAP_S and GL_TEXTURE_WRAP_T.

Author:
Takahiko Kawasaki
See Also:
Texture.setWrapS(WrapMode), Texture.setWrapT(WrapMode), glTexParameter

Enum Constant Summary
CLAMP_TO_EDGE
          GL_CLAMP_TO_EDGE.
MIRRORED_REPEAT
          GL_MIRRORED_REPEAT.
REPEAT
          GL_REPEAT.
 
Method Summary
 int getMode()
          Get the integer representing this wrap mode.
static WrapMode valueOf(String name)
          Returns the enum constant of this type with the specified name.
static 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

REPEAT

public static final WrapMode REPEAT
GL_REPEAT.


CLAMP_TO_EDGE

public static final WrapMode CLAMP_TO_EDGE
GL_CLAMP_TO_EDGE.


MIRRORED_REPEAT

public static final WrapMode MIRRORED_REPEAT
GL_MIRRORED_REPEAT.

Method Detail

values

public static WrapMode[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (WrapMode c : WrapMode.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static WrapMode valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null

getMode

public int getMode()
Get the integer representing this wrap mode.

Returns:
The integer representing this wrap mode.