openrndr / org.openrndr.internal.gl3 / ColorBufferShadowGL3

ColorBufferShadowGL3

class ColorBufferShadowGL3 : ColorBufferShadow

Constructors

<init>

ColorBufferShadowGL3(colorBuffer: ColorBufferGL3)

Properties

buffer

val buffer: ByteBuffer

colorBuffer

val colorBuffer: ColorBufferGL3

elementSize

val elementSize: Int

size

val size: Int

Functions

destroy

fun destroy(): Unit

download

fun download(): Unit

mapBoolean

fun mapBoolean(mapper: (r: Double, g: Double, b: Double, a: Double) -> Boolean): Array<BooleanArray>

mapDouble

fun mapDouble(mapper: (r: Double, g: Double, b: Double, a: Double) -> Double): Array<DoubleArray>

mapFloat

fun mapFloat(mapper: (r: Double, g: Double, b: Double, a: Double) -> Float): Array<FloatArray>

mapIndexed

fun <T> mapIndexed(xrange: IntProgression, yrange: IntProgression, mapper: (x: Int, y: Int, r: Double, g: Double, b: Double, a: Double) -> T): Array<List<T>>

mapInt

fun mapInt(mapper: (r: Double, g: Double, b: Double, a: Double) -> Int): Array<IntArray>

read

fun read(x: Int, y: Int): ColorRGBa

upload

fun upload(): Unit

write

fun write(x: Int, y: Int, r: Double, g: Double, b: Double, a: Double): Unit

writer

fun writer(): BufferWriter

Inherited Functions

flatMapIndexed

open fun <T> flatMapIndexed(xrange: IntProgression = 0 until this.colorBuffer.effectiveWidth, yrange: IntProgression = 0 until this.colorBuffer.effectiveHeight, mapper: (x: Int, y: Int, r: Double, g: Double, b: Double, a: Double) -> T): List<T>

get

open operator fun get(x: Int, y: Int): ColorRGBa

set

open operator fun set(x: Int, y: Int, c: ColorRGBa): Unit

write

open fun write(x: Int, y: Int, color: ColorRGBa): Unit
open fun write(x: Int, y: Int, r: Float, g: Float, b: Float, a: Float): Unit