ArrayCubemap

expect interface ArrayCubemap(source)

Array of Cubemap, all with the same ColorType, ColorFormat and other properties. Typically, used for efficient reflection probes, lighting and shadowing systems. This is a common interface to be implemented in various target languages.

actual interface ArrayCubemap(source)
actual interface ArrayCubemap(source)

Properties

Link copied to clipboard
open val bounds: Rectangle
Link copied to clipboard
expect abstract var filterMag: MagnifyingFilter

the filter to use when displaying at sizes larger than the original

actual abstract var filterMag: MagnifyingFilter
actual abstract var filterMag: MagnifyingFilter

the filter to use when displaying at sizes larger than the original

Link copied to clipboard
expect abstract var filterMin: MinifyingFilter

the filter to use when displaying at sizes smaller than the original

actual abstract var filterMin: MinifyingFilter
actual abstract var filterMin: MinifyingFilter

the filter to use when displaying at sizes smaller than the original

Link copied to clipboard
expect abstract var flipV: Boolean
actual abstract var flipV: Boolean
actual abstract var flipV: Boolean
Link copied to clipboard
expect abstract val format: ColorFormat
actual abstract val format: ColorFormat
actual abstract val format: ColorFormat
Link copied to clipboard
expect abstract val layers: Int
actual abstract val layers: Int
actual abstract val layers: Int
Link copied to clipboard
expect abstract val levels: Int
actual abstract val levels: Int
actual abstract val levels: Int
Link copied to clipboard
expect abstract val session: Session?
actual abstract val session: Session?
actual abstract val session: Session?
Link copied to clipboard
expect abstract val type: ColorType
actual abstract val type: ColorType
actual abstract val type: ColorType
Link copied to clipboard
expect abstract val width: Int
actual abstract val width: Int
actual abstract val width: Int

Functions

Link copied to clipboard
expect abstract fun bind(unit: Int)
actual abstract fun bind(unit: Int)
actual abstract fun bind(unit: Int)
Link copied to clipboard
expect abstract fun copyTo(layer: Int, target: Cubemap, fromLevel: Int = 0, toLevel: Int = 0)
expect abstract fun copyTo(layer: Int, target: ArrayCubemap, targetLayer: Int, fromLevel: Int = 0, toLevel: Int = 0)

Copy contents in layer to target ColorBuffer

actual abstract fun copyTo(layer: Int, target: Cubemap, fromLevel: Int, toLevel: Int)
actual abstract fun copyTo(layer: Int, target: ArrayCubemap, targetLayer: Int, fromLevel: Int, toLevel: Int)
actual abstract fun copyTo(layer: Int, target: Cubemap, fromLevel: Int, toLevel: Int)
actual abstract fun copyTo(layer: Int, target: ArrayCubemap, targetLayer: Int, fromLevel: Int, toLevel: Int)

Copy contents in layer to target ColorBuffer

Link copied to clipboard
expect abstract fun destroy()
actual abstract fun destroy()
actual abstract fun destroy()
Link copied to clipboard
expect abstract fun generateMipmaps()

generates mipmaps from the top-level mipmap

actual abstract fun generateMipmaps()
actual abstract fun generateMipmaps()

generates mipmaps from the top-level mipmap

Link copied to clipboard
Link copied to clipboard
abstract fun read(layer: Int, buffer: ByteBuffer, level: Int = 0)
Link copied to clipboard
abstract fun write(side: CubemapSide, layer: Int, buffer: ByteBuffer, sourceFormat: ColorFormat = format, sourceType: ColorType = type, level: Int = 0)

Write to a single layer in the array texture