ZBuffer

constructor()(source)

Initializes a new instance of ZBuffer class. It is used to instantiate a ZBuffer object with default data values.


constructor(key: ZBufferKey, content: ZBufferContent)(source)

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.

dataType

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.

isIndexBuffer

Whether the buffer is an index buffer.

bufferId

The ID of the raw buffer associated with the buffer.

dataArray

The array of byte data for the buffer.