setBuffer
Asynchronously copies data to initialize a region of this BufferObject.
Parameters
engine
The engine
data
The data to copy
Asynchronously copies data to a region of this BufferObject with offset and count.
Parameters
engine
The engine
data
The data to copy
destOffsetInBytes
Destination offset in bytes (must be a multiple of 4)
count
Number of bytes to copy
fun setBuffer(engine: Engine, data: ByteArray, destOffsetInBytes: Int, count: Int, callback: () -> Unit? = null)
Asynchronously copies data to a region of this BufferObject with callback.
Parameters
engine
The engine
data
The data to copy
destOffsetInBytes
Destination offset in bytes (must be a multiple of 4)
count
Number of bytes to copy
callback
Optional callback that executes when the data upload is complete