public enum MrDataType extends java.lang.Enum<MrDataType>
Enum Constant and Description |
---|
FLOAT |
INT |
MAT3 |
MAT4 |
QUATERNION |
SAMPLER2D |
SHORT |
UNSIGNED_SHORT |
VEC2 |
VEC3 |
VEC4 |
Modifier and Type | Method and Description |
---|---|
int |
getByteSize()
Gets the mByteSize in bytes of this type
|
int |
getCount()
Gets the number of elements it contains, for instance, a vec3 will return 3
and matrix4 will return 16
|
int |
getValue()
Gets the OpenGL mValue of this type
|
static MrDataType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static MrDataType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MrDataType UNSIGNED_SHORT
public static final MrDataType SHORT
public static final MrDataType FLOAT
public static final MrDataType INT
public static final MrDataType VEC2
public static final MrDataType VEC3
public static final MrDataType VEC4
public static final MrDataType MAT3
public static final MrDataType MAT4
public static final MrDataType QUATERNION
public static final MrDataType SAMPLER2D
public static MrDataType[] values()
for (MrDataType c : MrDataType.values()) System.out.println(c);
public static MrDataType 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 nullpublic int getValue()
public int getByteSize()
public int getCount()