copyTo

actual abstract fun copyTo(target: ColorBuffer, fromLevel: Int, toLevel: Int, sourceRectangle: IntRectangle, targetRectangle: IntRectangle, filter: MagnifyingFilter)(source)

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


actual abstract fun copyTo(target: ColorBuffer, fromLevel: Int, toLevel: Int, filter: MagnifyingFilter)(source)

Copies level fromLevel to level toLevel of target without scaling. When the levels differ in size the overlapping region is copied, anchored at the texture origin: the bottom-left corner.


actual abstract fun copyTo(target: ArrayTexture, layer: Int, fromLevel: Int, toLevel: Int)(source)

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

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

Copies sourceRectangle of level fromLevel to targetRectangle of level toLevel of target. The rectangles are in pixels, with the origin in the top-left corner. The copy is scaled with filter when the rectangles differ in size, unscaled copies are clipped to both color buffers.


expect abstract fun copyTo(target: ColorBuffer, fromLevel: Int = 0, toLevel: Int = 0, filter: MagnifyingFilter = MagnifyingFilter.NEAREST)(source)

Copies level fromLevel to level toLevel of target without scaling. When the levels differ in size the overlapping region is copied, anchored at the texture origin: the bottom-left corner.


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

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

actual abstract fun copyTo(target: ColorBuffer, fromLevel: Int, toLevel: Int, sourceRectangle: IntRectangle, targetRectangle: IntRectangle, filter: MagnifyingFilter)(source)

Copies sourceRectangle of level fromLevel to targetRectangle of level toLevel of target. The rectangles are in pixels, with the origin in the top-left corner. The copy is scaled with filter when the rectangles differ in size, unscaled copies are clipped to both color buffers.


actual abstract fun copyTo(target: ColorBuffer, fromLevel: Int, toLevel: Int, filter: MagnifyingFilter)(source)

Copies level fromLevel to level toLevel of target without scaling. When the levels differ in size the overlapping region is copied, anchored at the texture origin: the bottom-left corner.


actual abstract fun copyTo(target: ArrayTexture, layer: Int, fromLevel: Int, toLevel: Int)(source)

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