openrndr / org.openrndr.draw / ArrayTexture

ArrayTexture

interface ArrayTexture (source)

Properties

bounds

open val bounds: Rectangle

filterMag

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

abstract var filterMag: MagnifyingFilter

filterMin

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

abstract var filterMin: MinifyingFilter

flipV

abstract var flipV: Boolean

format

abstract val format: ColorFormat

height

abstract val height: Int

layers

abstract val layers: Int

levels

abstract val levels: Int

session

abstract val session: Session?

type

abstract val type: ColorType

width

abstract val width: Int

wrapU

the wrapping mode to use in the horizontal direction

abstract var wrapU: WrapMode

wrapV

the wrapping mode to use in the vertical direction

abstract var wrapV: WrapMode

Functions

bind

abstract fun bind(unit: Int): Unit

copyTo

Copy contents in layer to target ColorBuffer

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

destroy

abstract fun destroy(): Unit

generateMipmaps

generates mipmaps from the top-level mipmap

abstract fun generateMipmaps(): Unit

read

abstract fun read(layer: Int, buffer: ByteBuffer, level: Int = 0): Unit

write

Write to a single layer in the array texture

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