colorBuffer

fun colorBuffer(colorBuffer: ColorBuffer, level: Int = 0)(source)

attach an existing ColorBuffer to the RenderTarget

Parameters

colorBuffer

an existing ColorBuffer

level

the ColorBuffer's mipmap-level to attach, default is 0


fun colorBuffer(name: String, colorBuffer: ColorBuffer, level: Int = 0)(source)

attach an existing ColorBuffer to the RenderTarget and give it a name

Parameters

name

the name for the attachment

colorBuffer

an existing ColorBuffer

level

the ColorBuffer's mipmap-level to attach, default is 0


fun colorBuffer(name: String, format: ColorFormat = ColorFormat.RGBa, type: ColorType = defaultColorType(format))(source)

create a new ColorBuffer and create a named attachment to the RenderTarget

Parameters

name

the name for the attachment

format

the ColorFormat for the ColorBuffer, default is ColorFormat.RGBa

type

fun colorBuffer(format: ColorFormat = ColorFormat.RGBa, type: ColorType = defaultColorType(format))(source)

create a new ColorBuffer and create a nameless attachment to the RenderTarget

Parameters

format

the ColorFormat for the ColorBuffer, default is ColorFormat.RGBa

type