CompositeFilter

class CompositeFilter<F0 : Filter, F1 : Filter>(val first: F0, val second: F1, firstSource: (List<ColorBuffer>) -> List<ColorBuffer>, secondSource: (List<ColorBuffer>, ColorBuffer) -> List<ColorBuffer>, firstParameters: F0.() -> Unit, secondParameters: F1.() -> Unit, useIntermediateBuffer: Boolean = false) : Filter(source)

Parameters

first

the filter that is applied first

second

the filter that is applied second

firstSource

a function that maps source color buffers for the first filter

secondSource

a function that maps source color buffers for the second filter

firstParameters

a function that sets parameters for the first filter

secondParameters

a function that sets parameters for the second fillter

useIntermediateBuffer

should an intermediate buffer be maintained? when set to false the first filter will write to the target color buffer

Constructors

Link copied to clipboard
constructor(first: F0, second: F1, firstSource: (List<ColorBuffer>) -> List<ColorBuffer>, secondSource: (List<ColorBuffer>, ColorBuffer) -> List<ColorBuffer>, firstParameters: F0.() -> Unit, secondParameters: F1.() -> Unit, useIntermediateBuffer: Boolean = false)

Properties

Link copied to clipboard
var depthBufferOut: DepthBuffer?
Link copied to clipboard
val first: F0
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val second: F1

Functions

Link copied to clipboard
fun apply(source: Array<ColorBuffer>, target: ColorBuffer, clip: Rectangle?)
fun apply(source: Array<ColorBuffer>, target: RenderTarget, clip: Rectangle?)
fun apply(source: ColorBuffer, target: Array<ColorBuffer>, clip: Rectangle?)
fun apply(source: ColorBuffer, target: ColorBuffer, clip: Rectangle?)
open override fun apply(source: Array<ColorBuffer>, target: Array<ColorBuffer>, clip: Rectangle?)
Link copied to clipboard
open override fun close()
Link copied to clipboard
open override fun destroy()
Link copied to clipboard
fun untrack()