ZBuffer
Initializes a new instance of ZBuffer class. It is used to instantiate a ZBuffer object with default data values.
Initializes a ZBuffer object with a ZBufferKey and ZBufferContent.
Parameters
key
The buffer key containing layout information.
content
The buffer content containing the data array.
constructor(id: Int, dataType: ZDataType, name: String, size: Int, count: Int, normalized: Boolean, offset: Int, stride: Int, isIndexBuffer: Boolean, bufferId: Int, dataArray: ByteArray)(source)
Initializes a ZBuffer object with the given arguments.
Parameters
id
The ID of the buffer.
data Type
The data type of the buffer.
name
The name of the buffer.
size
How many elements are stored per data unit.
count
The number of elements of type dataType are stored in the buffer.
normalized
Whether the data in the buffer is normalized.
offset
The offset of the buffer data.
stride
The stride of the buffer data.
is Index Buffer
Whether the buffer is an index buffer.
buffer Id
The ID of the raw buffer associated with the buffer.
data Array
The array of byte data for the buffer.