openrndr / org.openrndr.draw / VolumeTexture

VolumeTexture

interface VolumeTexture (source)

Properties

depth

abstract val depth: Int

format

abstract val format: ColorFormat

height

abstract val height: Int

levels

abstract val levels: Int

session

abstract val session: Session?

type

abstract val type: ColorType

width

abstract val width: Int

Functions

bind

abstract fun bind(textureUnit: Int = 0): Unit

copyTo

abstract fun copyTo(target: ColorBuffer, layer: Int, fromLevel: Int = 0, toLevel: Int = 0): Unit

destroy

abstract fun destroy(): Unit

fill

abstract fun fill(color: ColorRGBa): Unit

filter

abstract fun filter(min: MinifyingFilter, mag: MagnifyingFilter): Unit

generateMipmaps

abstract fun generateMipmaps(): Unit

read

abstract fun read(layer: Int, target: ByteBuffer, targetFormat: ColorFormat = format, targetType: ColorType = type, level: Int = 0): Unit

write

abstract fun write(layer: Int, source: ByteBuffer, sourceFormat: ColorFormat = format, sourceType: ColorType = type, level: Int = 0): Unit

Companion Object Functions

create

fun create(width: Int, height: Int, depth: Int, format: ColorFormat = ColorFormat.RGBa, type: ColorType = ColorType.UINT8, levels: Int = 1, session: Session? = Session.active): VolumeTexture

Extension Functions

imageBinding

fun VolumeTexture.imageBinding(level: Int = 0, imageAccess: ImageAccess): VolumeTextureImageBinding