openrndr / org.openrndr.draw / Cubemap

Cubemap

interface Cubemap

Properties

width

abstract val width: Int

Functions

bind

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

destroy

abstract fun destroy(): Unit

filter

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

generateMipmaps

abstract fun generateMipmaps(): Unit

side

abstract fun side(side: CubemapSide): ColorBuffer

Companion Object Functions

create

fun create(width: Int, format: ColorFormat = ColorFormat.RGBa, type: ColorType = ColorType.UINT8): Cubemap

fromUrl

fun fromUrl(url: String): Cubemap

fromUrls

fun fromUrls(urls: List<String>): Cubemap

Inheritors

CubemapGL3

class CubemapGL3 : Cubemap