setBufferAt
Sets the data for a given buffer in this vertex buffer set.
Parameters
engine
The engine
bufferIndex
The index of the buffer to set (0 to bufferCount - 1)
data
The vertex data as a ByteArray
fun setBufferAt(engine: Engine, bufferIndex: Int, data: ByteArray, destOffsetInBytes: Int, count: Int)
Sets the data for a given buffer with offset and count.
Parameters
engine
The engine
bufferIndex
The index of the buffer to set (0 to bufferCount - 1)
data
The vertex data as a ByteArray
destOffsetInBytes
Destination offset in bytes
count
Number of bytes to copy
fun setBufferAt(engine: Engine, bufferIndex: Int, data: ByteArray, destOffsetInBytes: Int, count: Int, callback: () -> Unit? = null)
Sets the data for a given buffer with offset, count, and optional completion callback.
Parameters
engine
The engine
bufferIndex
The index of the buffer to set (0 to bufferCount - 1)
data
The vertex data as a ByteArray
destOffsetInBytes
Destination offset in bytes
count
Number of bytes to copy
callback
Optional callback that executes when the data upload is complete