VertexBuffer

expect abstract class VertexBuffer : AutoCloseable(source)
actual abstract class VertexBuffer : AutoCloseable(source)
actual abstract class VertexBuffer : AutoCloseable(source)

Constructors

Link copied to clipboard
constructor()
constructor()

Types

Link copied to clipboard
expect object Companion
actual object Companion
actual object Companion

Properties

Link copied to clipboard
expect abstract val session: Session?
actual abstract val session: Session?
actual abstract val session: Session?
Link copied to clipboard
expect abstract val shadow: VertexBufferShadow

Gives a read/write shadow for the vertex buffer

actual abstract val shadow: VertexBufferShadow

Gives a read/write shadow for the vertex buffer

actual abstract val shadow: VertexBufferShadow

Gives a read/write shadow for the vertex buffer

Link copied to clipboard
expect abstract val vertexCount: Int
actual abstract val vertexCount: Int
actual abstract val vertexCount: Int
Link copied to clipboard
expect abstract val vertexFormat: VertexFormat
actual abstract val vertexFormat: VertexFormat
actual abstract val vertexFormat: VertexFormat

Functions

close
Link copied to clipboard
expect abstract fun close()
abstract fun close()
abstract fun close()
Link copied to clipboard
expect abstract fun destroy()

Destroy the vertex buffer

actual abstract fun destroy()

Destroy the vertex buffer

actual abstract fun destroy()

Destroy the vertex buffer

Link copied to clipboard
expect fun put(elementOffset: Int = 0, putter: BufferWriter.() -> Unit): Int
actual fun put(elementOffset: Int, putter: BufferWriter.() -> Unit): Int
actual fun put(elementOffset: Int, putter: BufferWriter.() -> Unit): Int
Link copied to clipboard
abstract fun read(data: ByteBuffer, offsetInBytes: Int = 0)
Link copied to clipboard
expect abstract fun write(source: MPPBuffer, targetByteOffset: Int = 0, sourceByteOffset: Int = 0, byteLength: Int = source.capacity())
abstract fun write(data: FloatArray, offsetBytes: Int, floatCount: Int)
abstract fun write(data: Float32Array, offsetBytes: Int, floatCount: Int)
actual abstract fun write(source: MPPBuffer, targetByteOffset: Int, sourceByteOffset: Int, byteLength: Int)
abstract fun write(data: ByteBuffer, offsetInBytes: Int = 0)
actual abstract fun write(source: MPPBuffer, targetByteOffset: Int, sourceByteOffset: Int, byteLength: Int)