setBufferAt

actual fun setBufferAt(engine: Engine, bufferIndex: Int, data: ByteArray)

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


actual 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


actual fun setBufferAt(engine: Engine, bufferIndex: Int, data: ByteArray, destOffsetInBytes: Int, count: Int, callback: () -> Unit?)

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

expect fun setBufferAt(engine: Engine, bufferIndex: Int, data: ByteArray)

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


expect 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


expect 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

actual fun setBufferAt(engine: Engine, bufferIndex: Int, data: ByteArray)

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


actual 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


actual fun setBufferAt(engine: Engine, bufferIndex: Int, data: ByteArray, destOffsetInBytes: Int, count: Int, callback: () -> Unit?)

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

actual fun setBufferAt(engine: Engine, bufferIndex: Int, data: ByteArray)

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


actual 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


actual fun setBufferAt(engine: Engine, bufferIndex: Int, data: ByteArray, destOffsetInBytes: Int, count: Int, callback: () -> Unit?)

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

actual fun setBufferAt(engine: Engine, bufferIndex: Int, data: ByteArray)

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


actual 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


actual fun setBufferAt(engine: Engine, bufferIndex: Int, data: ByteArray, destOffsetInBytes: Int, count: Int, callback: () -> Unit?)

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