ArrayTexture

actual abstract class ArrayTexture : Texture, AutoCloseable(source)
expect abstract class ArrayTexture : Texture, AutoCloseable(source)

Represents a texture with multiple layers, commonly referred to as an array texture. This abstract class defines properties and operations essential for managing the texture, including binding, filling, copying contents, and mipmap generation.

actual abstract class ArrayTexture : Texture, AutoCloseable(source)

Constructors

Link copied to clipboard
constructor()
constructor()

Properties

Link copied to clipboard
actual val bounds: Rectangle
expect val bounds: Rectangle
actual val bounds: 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

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

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

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

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 height: Int
expect abstract val height: Int
actual abstract val height: Int
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
Link copied to clipboard
actual abstract var wrapU: WrapMode

the wrapping mode to use in the horizontal direction

expect abstract var wrapU: WrapMode

the wrapping mode to use in the horizontal direction

actual abstract var wrapU: WrapMode

the wrapping mode to use in the horizontal direction

Link copied to clipboard
actual abstract var wrapV: WrapMode

the wrapping mode to use in the vertical direction

expect abstract var wrapV: WrapMode

the wrapping mode to use in the vertical direction

actual abstract var wrapV: WrapMode

the wrapping mode to use in the vertical direction

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: ColorBuffer, fromLevel: Int, toLevel: Int)
actual abstract fun copyTo(layer: Int, target: ArrayTexture, targetLayer: Int, fromLevel: Int, toLevel: Int)

Copy contents in layer to target ColorBuffer

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

Copy contents in layer to target ColorBuffer

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

Copy contents in layer to target ColorBuffer

Link copied to clipboard
actual abstract fun destroy()
expect abstract fun destroy()
actual abstract fun destroy()
Link copied to clipboard
actual abstract fun fill(color: ERROR CLASS: Symbol not found for ColorRGBa, layer: Int, level: Int)
expect abstract fun fill(color: ColorRGBa, layer: Int, level: Int = 0)
actual abstract fun fill(color: ColorRGBa, layer: Int, level: Int)
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()

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(layer: Int, buffer: ByteBuffer, sourceFormat: ColorFormat = format, sourceType: ColorType = type, level: Int = 0)

Write to a single layer in the array texture