com.neovisionaries.android.opengl
Enum AttrDataType

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

public enum AttrDataType
extends Enum<AttrDataType>

Data type for Attribute.

Author:
Takahiko Kawasaki

Enum Constant Summary
BYTE
          GL_BYTE.
FIXED
          GL_FIXED.
FLOAT
          GL_FLOAT.
SHORT
          GL_SHORT.
UNSIGNED_BYTE
          GL_UNSIGNED_BYTE.
UNSIGNED_SHORT
          GL_UNSIGNED_SHORT.
 
Method Summary
 int getType()
          Get the integer representing the data type.
static AttrDataType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static AttrDataType[] 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

BYTE

public static final AttrDataType BYTE
GL_BYTE.


UNSIGNED_BYTE

public static final AttrDataType UNSIGNED_BYTE
GL_UNSIGNED_BYTE.


SHORT

public static final AttrDataType SHORT
GL_SHORT.


UNSIGNED_SHORT

public static final AttrDataType UNSIGNED_SHORT
GL_UNSIGNED_SHORT.


FLOAT

public static final AttrDataType FLOAT
GL_FLOAT.


FIXED

public static final AttrDataType FIXED
GL_FIXED.

Method Detail

values

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

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

valueOf

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

getType

public int getType()
Get the integer representing the data type.

Returns:
The integer representing the data type.