VertexBuffer

expect abstract class VertexBuffer
actual abstract class VertexBuffer
actual abstract class VertexBuffer

Constructors

Link copied to clipboard
fun VertexBuffer()
fun VertexBuffer()

Types

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

Functions

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, offset: 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, offset: Int = 0)
actual abstract fun write(    source: MPPBuffer,     targetByteOffset: Int,     sourceByteOffset: Int,     byteLength: Int)

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

Sources

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard