openrndr / org.openrndr.draw / BufferWriter

BufferWriter

interface BufferWriter (source)

Properties

position

abstract var position: Int

positionElements

abstract var positionElements: Int

Functions

copyBuffer

abstract fun copyBuffer(sourceBuffer: ByteBuffer, sourceOffset: Int, sourceSizeInBytes: Int): Unit

rewind

rewind the underlying buffer

abstract fun rewind(): Unit

write

open fun write(vararg v: Vector3): Unit
abstract fun write(v: Byte): Unit
abstract fun write(v: Short): Unit
abstract fun write(v: Vector3): Unit
abstract fun write(v: Vector2): Unit
abstract fun write(v: Vector4): Unit
abstract fun write(v: Int): Unit
abstract fun write(v: IntVector2): Unit
abstract fun write(v: IntVector3): Unit
abstract fun write(v: IntVector4): Unit
abstract fun write(v: Matrix33): 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