Client API. The Codename One framework your app is built on: this runs on the device, not in a backend.
public enum VertexAttribute.Usage
- Object
- Enum<VertexAttribute.Usage>
- VertexAttribute.Usage
ImplementsComparable<VertexAttribute.Usage>
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 constants
POSITION | Object space vertex position. |
NORMAL | Object space vertex normal. |
TEXCOORD | Primary texture coordinate. |
COLOR | Per vertex color. |
JOINTS | The four skeleton joints that move a skinned vertex, as joint indices stored in floats. |
WEIGHTS | The weight of each of the four JOINTS, summing to 1. 4 components. |
Methods
public static VertexAttribute.Usage[] values() | |
public static VertexAttribute.Usage valueOf(String name) |
Inherited methods
Enum constant details
POSITION
POSITIONObject space vertex position. Typically 3 float components.
NORMAL
NORMALObject space vertex normal. Typically 3 float components.
TEXCOORD
TEXCOORDPrimary texture coordinate. Typically 2 float components.
COLOR
COLORPer vertex color. Typically 4 components.
JOINTS
JOINTSThe four skeleton joints that move a skinned vertex, as joint
indices stored in floats. 4 components.
WEIGHTS
WEIGHTSThe weight of each of the four
JOINTS, summing to 1. 4
components.Method details
values
public static VertexAttribute.Usage[] values()valueOf
public static VertexAttribute.Usage valueOf(String name)