Creates a new vertex attribute from the name, the data type and the size. The upload mode will be {@link UploadMode#TO_FLOAT}.
Creates a new vertex attribute from the name, the data type, the size and the upload mode.
Clears all of the buffer data.
Returns a new byte buffer filled and ready to read, containing the attribute data. This method will {@link java.nio.ByteBuffer#flip()} the buffer before returning it.
Returns the name of the attribute.
Return the size of the attribute.
Returns the data type of the attribute.
Returns the upload mode for this attribute.
Replaces the current buffer data with a copy of the given {@link java.nio.ByteBuffer} This method arbitrarily creates data for the ByteBuffer regardless of the data type of the vertex attribute.
Represents a vertex attribute. It has a name, a data type, a size (the number of components) and data.