DataType

Represents an attribute data type.

Members

Functions

getByteSize
uint getByteSize()

Returns the size in bytes of the data type.

getGLConstant
uint getGLConstant()

Returns the OpenGL constant for the data type.

getMultiplyShift
uint getMultiplyShift()

Returns the shift amount equivalent to multiplying by the number of bytes in this data type.

isInteger
bool isInteger()

Returns true if the data type is an integer number ({@link DataType#BYTE}, {@link DataType#SHORT} or {@link DataType#INT}).

isSigned
bool isSigned()

Returns true if this data type supports signed numbers, false if not.

Meta