VolumeTexture

expect interface VolumeTexture : AutoCloseable(source)

Represents a 3D texture, also known as a volume texture. A volume texture is a set of texture data stored in a 3D space, identified by its width, height, and depth dimensions. It can be used in various applications, such as 3D data visualization, texture maps for 3D objects, and more.

actual interface VolumeTexture : AutoCloseable(source)
actual interface VolumeTexture : AutoCloseable(source)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
expect abstract val depth: Int
actual abstract val depth: Int
actual abstract val depth: Int
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 height: Int
actual abstract val height: Int
actual abstract val height: 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(textureUnit: Int = 0)
actual abstract fun bind(textureUnit: Int)
actual abstract fun bind(textureUnit: Int)
close
Link copied to clipboard
expect abstract fun close()
abstract fun close()
abstract fun close()
Link copied to clipboard
expect abstract fun copyTo(target: ColorBuffer, layer: Int, fromLevel: Int = 0, toLevel: Int = 0)
actual abstract fun copyTo(target: ColorBuffer, layer: Int, fromLevel: Int, toLevel: Int)
actual abstract fun copyTo(target: ColorBuffer, layer: Int, fromLevel: Int, toLevel: Int)
Link copied to clipboard
expect abstract fun destroy()
actual abstract fun destroy()
actual abstract fun destroy()
Link copied to clipboard
abstract fun fill(color: ColorRGBa)
Link copied to clipboard
expect abstract fun filter(min: MinifyingFilter, mag: MagnifyingFilter)
actual abstract fun filter(min: MinifyingFilter, mag: MagnifyingFilter)
actual abstract fun filter(min: MinifyingFilter, mag: MagnifyingFilter)
Link copied to clipboard
expect abstract fun generateMipmaps()

Generates mipmaps for the 3D texture. Mipmaps are a series of precomputed smaller textures derived from the base level texture, used for efficient rendering at varying distances or levels of detail.

actual abstract fun generateMipmaps()
actual abstract fun generateMipmaps()
Link copied to clipboard
Link copied to clipboard
abstract fun read(target: ByteBuffer, targetFormat: ColorFormat = format, targetType: ColorType = type, level: Int = 0)
abstract fun read(layer: Int, target: ByteBuffer, targetFormat: ColorFormat = format, targetType: ColorType = type, level: Int = 0)
Link copied to clipboard
abstract fun write(source: ByteBuffer, sourceFormat: ColorFormat = format, sourceType: ColorType = type, level: Int = 0)
abstract fun write(layer: Int, source: ByteBuffer, sourceFormat: ColorFormat = format, sourceType: ColorType = type, level: Int = 0)