openrndr / org.openrndr.internal.gl3 / UniformBlockGL3

UniformBlockGL3

class UniformBlockGL3 : UniformBlock

Constructors

<init>

UniformBlockGL3(layout: UniformBlockLayout, blockBinding: Int, ubo: Int, shadowBuffer: ByteBuffer)

Properties

blockBinding

val blockBinding: Int

dirty

val dirty: Boolean

layout

val layout: UniformBlockLayout

realDirty

var realDirty: Boolean

shadowBuffer

val shadowBuffer: ByteBuffer

ubo

val ubo: Int

Functions

uniform

fun uniform(name: String, value: Float): Unit
fun uniform(name: String, value: Vector2): Unit
fun uniform(name: String, value: Vector3): Unit
fun uniform(name: String, value: ColorRGBa): Unit
fun uniform(name: String, value: Vector4): Unit
fun uniform(name: String, value: Matrix44): Unit
fun uniform(name: String, value: Matrix55): Unit
fun uniform(name: String, value: Array<Float>): Unit
fun uniform(name: String, value: Array<Vector2>): Unit
fun uniform(name: String, value: Array<Vector3>): Unit
fun uniform(name: String, value: Array<Vector4>): Unit

upload

fun upload(): Unit

Companion Object Functions

create

fun create(layout: UniformBlockLayout): UniformBlockGL3