openrndr / org.openrndr.draw / RectangleBatch

RectangleBatch

class RectangleBatch (source)

Constructors

<init>

RectangleBatch(geometry: VertexBuffer, drawStyle: VertexBuffer)

Properties

drawStyle

val drawStyle: VertexBuffer

geometry

val geometry: VertexBuffer

size

val size: Int

Functions

destroy

Destroy the stored batch

fun destroy(): Unit

Companion Object Functions

create

fun create(size: Int, session: Session? = Session.active): RectangleBatch