Enum VertexAttribute.Usage
- All Implemented Interfaces:
Comparable<VertexAttribute.Usage>
- Enclosing class:
VertexAttribute
The semantic meaning of a vertex attribute. The engine binds each usage
to a known shader input and a known purpose in the generated materials.
-
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic VertexAttribute.UsageReturns the enum constant of this type with the specified name.static VertexAttribute.Usage[]values()Returns an array containing the constants of this enum type, in the order they are declared.Methods inherited from class Enum
clone, compareTo, equals, getDeclaringClass, getEnumValues, hashCode, name, ordinal, setEnumValues, toString, valueOf
-
Enum Constant Details
-
POSITION
Object space vertex position. Typically 3 float components. -
NORMAL
Object space vertex normal. Typically 3 float components. -
TEXCOORD
Primary texture coordinate. Typically 2 float components. -
COLOR
Per vertex color. Typically 4 components.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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 nameNullPointerException- if the argument is null
-