openrndr / org.openrndr.draw / BufferWriter

BufferWriter

interface BufferWriter

Properties

position

abstract var position: Int

positionElements

abstract var positionElements: Int

Functions

rewind

abstract fun rewind(): Unit

rewind the underlying buffer

write

open fun write(vararg v: Vector3): Unit
abstract fun write(v: Vector3): Unit
abstract fun write(v: Vector2): Unit
abstract fun write(v: Vector4): Unit
abstract fun write(v: Matrix44): Unit
abstract fun write(v: Float): Unit
abstract fun write(x: Float, y: Float): Unit
abstract fun write(x: Float, y: Float, z: Float): Unit
abstract fun write(x: Float, y: Float, z: Float, w: Float): Unit
abstract fun write(v: ColorRGBa): Unit
abstract fun write(a: FloatArray, offset: Int = 0, size: Int = a.size): Unit

Inheritors

BufferWriterGL3

class BufferWriterGL3 : BufferWriter