ArrayCubemap

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.

Properties

Link copied to clipboard
open val bounds: ERROR CLASS: Symbol not found for Rectangle
Link copied to clipboard
actual abstract var filterMag: MagnifyingFilter

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

expect abstract var filterMag: MagnifyingFilter

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

actual abstract var filterMag: MagnifyingFilter
Link copied to clipboard
actual abstract var filterMin: MinifyingFilter

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

expect abstract var filterMin: MinifyingFilter

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

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

Functions

close
Link copied to clipboard
abstract fun close()
expect abstract fun close()
expect abstract fun close()
Link copied to clipboard
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

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)
Link copied to clipboard
actual abstract fun destroy()
expect abstract fun destroy()
actual abstract fun destroy()
Link copied to clipboard
actual abstract fun generateMipmaps()

generates mipmaps from the top-level mipmap

expect abstract fun generateMipmaps()

generates mipmaps from the top-level mipmap

actual abstract fun generateMipmaps()
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