openrndr / org.openrndr.draw / VertexBuffer

VertexBuffer

interface VertexBuffer

Properties

shadow

abstract val shadow: VertexBufferShadow

vertexCount

abstract val vertexCount: Int

vertexFormat

abstract val vertexFormat: VertexFormat

Functions

destroy

abstract fun destroy(): Unit

put

open fun put(putter: BufferWriter.() -> Unit): Int

read

abstract fun read(data: ByteBuffer, offset: Int = 0): Unit

write

abstract fun write(data: ByteBuffer, offset: Int = 0): Unit

Companion Object Functions

createDynamic

fun createDynamic(format: VertexFormat, vertexCount: Int): VertexBuffer

Inheritors

VertexBufferGL3

class VertexBufferGL3 : VertexBuffer