copyTo

common
abstract fun copyTo(target: ColorBuffer, fromLevel: Int = 0, toLevel: Int = 0, sourceRectangle: IntRectangle, targetRectangle: IntRectangle, filter: MagnifyingFilter = MagnifyingFilter.NEAREST)

Parameters

abstract fun copyTo(target: ColorBuffer, fromLevel: Int = 0, toLevel: Int = 0, sourceRectangle: IntRectangle, targetRectangle: IntRectangle, filter: MagnifyingFilter = MagnifyingFilter.NEAREST)

copies contents to a target color buffer

Parameters

target

the color buffer to which contents will be copied

fromLevel

the mip-map level from which will be copied

toLevel

the mip-map level of target to which will be copied

sourceRectangle

rectangle in pixel units that specifies where to read from

targetRectangle

rectangle in pixel units that specifies where to write to

filter

filter to use for copying

abstract fun copyTo(target: ColorBuffer, fromLevel: Int = 0, toLevel: Int = 0, filter: MagnifyingFilter = MagnifyingFilter.NEAREST)
abstract fun copyTo(target: ColorBuffer, fromLevel: Int = 0, toLevel: Int = 0, filter: MagnifyingFilter = MagnifyingFilter.NEAREST)
abstract fun copyTo(target: ColorBuffer, fromLevel: Int = 0, toLevel: Int = 0, filter: MagnifyingFilter = MagnifyingFilter.NEAREST)
common
abstract fun copyTo(target: ArrayTexture, layer: Int, fromLevel: Int = 0, toLevel: Int = 0)

copies contents to a target array texture

Parameters

target

the color buffer to which contents will be copied

layer

the array layer from which will be copied

fromLevel

the mip-map level from which will be copied

toLevel

the mip-map level of target to which will be copied

js
abstract fun copyTo(target: ArrayTexture, layer: Int, fromLevel: Int = 0, toLevel: Int = 0)

copies contents to a target array texture

Parameters

target

the color buffer to which contents will be copied

layer

the array layer from which will be copied

fromLevel

the mip-map level from which will be copied

toLevel

the mip-map level of target to which will be copied

abstract fun copyTo(target: ArrayTexture, layer: Int, fromLevel: Int = 0, toLevel: Int = 0)

Parameters

target

the color buffer to which contents will be copied

layer

the array layer from which will be copied

fromLevel

the mip-map level from which will be copied

toLevel

the mip-map level of target to which will be copied