apply

open fun apply(source: Array<ColorBuffer>, target: Array<ColorBuffer>, clip: Rectangle? = null)(source)

Applies a filter operation using the given source and target arrays of ColorBuffer. Optionally, a clipping rectangle can be used to define the region for the filter operation.

Parameters

source

An array of ColorBuffer representing the input for the filter operation.

target

An array of ColorBuffer representing the destination where the filter result will be applied.

clip

An optional Rectangle that defines the clipping region for the filter operation.


fun apply(source: Array<ColorBuffer>, target: RenderTarget, clip: Rectangle? = null)(source)

Applies a filter operation using the given source and target using a shader program. Optionally, a clipping rectangle can be used to define the region for the filter operation. Custom shader parameters are applied where applicable.

Parameters

source

An array of ColorBuffer representing the input for the filter operation.

target

A RenderTarget where the result of the filter operation will be applied.

clip

An optional Rectangle specifying the clipping region for the filter application. Defaults to null.


fun apply(source: ColorBuffer, target: ColorBuffer, clip: Rectangle? = null)(source)


fun apply(source: ColorBuffer, target: Array<ColorBuffer>, clip: Rectangle? = null)(source)

Applies a filter operation using the given source ColorBuffer and target array of ColorBuffer. Optionally, a clipping rectangle can be used to define the region for the filter operation.

Parameters

source

A ColorBuffer representing the input for the filter operation.

target

An array of ColorBuffer representing the destination where the filter result will be applied.

clip

An optional Rectangle that defines the clipping region for the filter operation. Defaults to null.


fun apply(source: Array<ColorBuffer>, target: ColorBuffer, clip: Rectangle? = null)(source)

Applies a filter operation using the given source array of ColorBuffer and the target ColorBuffer. Optionally, a clipping rectangle can be used to define the region for the filter operation.

Parameters

source

An array of ColorBuffer representing the input for the filter operation.

target

A ColorBuffer representing the destination where the filter result will be applied.

clip

An optional Rectangle specifying the clipping region for the filter operation. Defaults to null.