com.neovisionaries.android.opengl
Enum Face

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

public enum Face
extends Enum<Face>

Face.

Author:
Takahiko Kawasaki

Enum Constant Summary
BACK
          GL_BACK.
FRONT
          GL_FRONT.
FRONT_AND_BACK
          GL_FRONT_AND_BACK.
 
Method Summary
 int getFace()
          Get the integer representing this face.
static Face valueOf(String name)
          Returns the enum constant of this type with the specified name.
static Face[] 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

FRONT

public static final Face FRONT
GL_FRONT.


BACK

public static final Face BACK
GL_BACK.


FRONT_AND_BACK

public static final Face FRONT_AND_BACK
GL_FRONT_AND_BACK.

Method Detail

values

public static Face[] 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 (Face c : Face.values())
    System.out.println(c);

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

valueOf

public static Face 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

getFace

public int getFace()
Get the integer representing this face.

Returns:
The integer representing this face.