BufferObject
A generic GPU buffer for storing data.
BufferObject usage is optional and mainly useful when you need to share data between multiple VertexBuffer instances. It also allows you to efficiently swap-out buffers in VertexBuffer.
For simple use cases where you don't need to share data, it is not necessary to use BufferObject. The buffer is created uninitialized; use setBuffer() to initialize it.
See also
, IndexBuffer
Properties
Functions
Link copied to clipboard
Asynchronously copies data to initialize a region of this BufferObject.
Asynchronously copies data to a region of this BufferObject with offset and count.
fun setBuffer(engine: Engine, data: ByteArray, destOffsetInBytes: Int, count: Int, callback: () -> Unit? = null)
Asynchronously copies data to a region of this BufferObject with callback.