openrndr / org.openrndr.draw / Cubemap

Cubemap

interface Cubemap (source)

Properties

format

abstract val format: ColorFormat

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: ArrayCubemap, layer: Int, fromLevel: Int = 0, toLevel: Int = 0): Unit
abstract fun copyTo(target: Cubemap, fromLevel: Int = 0, toLevel: Int = 0): Unit

destroy

abstract fun destroy(): Unit

filter

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

generateMipmaps

abstract fun generateMipmaps(): Unit

read

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

side

abstract fun side(side: CubemapSide): ColorBuffer

Companion Object Functions

create

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

fromUrl

fun fromUrl(url: String, session: Session?): Cubemap

fromUrls

fun fromUrls(urls: List<String>, session: Session?): Cubemap