openrndr / org.openrndr.internal.gl3 / BufferWriterGL3

BufferWriterGL3

class BufferWriterGL3 : BufferWriter

Constructors

<init>

BufferWriterGL3(buffer: ByteBuffer, elementSize: Int = 1)

Properties

buffer

val buffer: ByteBuffer

elementSize

val elementSize: Int

position

var position: Int

positionElements

var positionElements: Int

Functions

rewind

fun rewind(): Unit

rewind the underlying buffer

write

fun write(a: FloatArray, offset: Int, size: Int): Unit
fun write(v: Vector3): Unit
fun write(v: Vector2): Unit
fun write(v: Vector4): Unit
fun write(v: Matrix44): Unit
fun write(v: Float): Unit
fun write(x: Float, y: Float, z: Float): Unit
fun write(x: Float, y: Float, z: Float, w: Float): Unit
fun write(x: Float, y: Float): Unit
fun write(v: ColorRGBa): Unit

Inherited Functions

write

open fun write(vararg v: Vector3): Unit