VertexBuffer

abstract class VertexBuffer

Types

Companion
Link copied to clipboard
common
object Companion

Functions

destroy
Link copied to clipboard
common
abstract fun destroy()

Destroy the vertex buffer

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

Properties

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

Gives a read/write shadow for the vertex buffer

abstract val shadow: VertexBufferShadow

Gives a read/write shadow for the vertex buffer

abstract val shadow: VertexBufferShadow

Gives a read/write shadow for the vertex buffer

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