Cubemap

actual interface Cubemap : Texture, AutoCloseable(source)

Represents a cubemap, which is a collection of six 2D textures arranged to form the faces of a cube. It is often used for environment mapping and skyboxes in 3D rendering.

Properties:

expect interface Cubemap : Texture, AutoCloseable(source)

Represents a cubemap, which is a collection of six 2D textures arranged to form the faces of a cube. It is often used for environment mapping and skyboxes in 3D rendering.

Properties:

actual interface Cubemap : Texture, AutoCloseable(source)

Represents a cubemap, which is a collection of six 2D textures arranged to form the faces of a cube. It is often used for environment mapping and skyboxes in 3D rendering.

Properties:

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
actual abstract val format: ColorFormat

The color format of the cubemap sides.

expect abstract val format: ColorFormat

The color format of the cubemap sides.

actual abstract val format: ColorFormat

The color format of the cubemap sides.

Link copied to clipboard
actual abstract val levels: Int

The number of mipmap levels of the cubemap.

expect abstract val levels: Int

The number of mipmap levels of the cubemap.

actual abstract val levels: Int

The number of mipmap levels of the cubemap.

Link copied to clipboard
actual abstract val session: Session?

The session associated with this cubemap, or null if no session is associated.

expect abstract val session: Session?

The session associated with this cubemap, or null if no session is associated.

actual abstract val session: Session?

The session associated with this cubemap, or null if no session is associated.

Link copied to clipboard
actual abstract val type: ColorType

The color data type of the cubemap sides.

expect abstract val type: ColorType

The color data type of the cubemap sides.

actual abstract val type: ColorType

The color data type of the cubemap sides.

Link copied to clipboard
actual abstract val width: Int

The width of each side of the cubemap in pixels.

expect abstract val width: Int

The width of each side of the cubemap in pixels.

actual abstract val width: Int

The width of each side of the cubemap in pixels.

Functions

close
Link copied to clipboard
abstract fun close()
expect abstract fun close()
expect abstract fun close()
Link copied to clipboard
actual abstract fun copyTo(target: Cubemap, fromLevel: Int, toLevel: Int)
actual abstract fun copyTo(target: ArrayCubemap, layer: Int, fromLevel: Int, toLevel: Int)
actual abstract fun copyTo(target: ColorBuffer, fromSide: CubemapSide, fromLevel: Int, toLevel: Int)
expect abstract fun copyTo(target: Cubemap, fromLevel: Int = 0, toLevel: Int = 0)
expect abstract fun copyTo(target: ArrayCubemap, layer: Int, fromLevel: Int = 0, toLevel: Int = 0)
expect abstract fun copyTo(target: ColorBuffer, fromSide: CubemapSide, fromLevel: Int = 0, toLevel: Int = 0)
actual abstract fun copyTo(target: Cubemap, fromLevel: Int, toLevel: Int)
actual abstract fun copyTo(target: ArrayCubemap, layer: Int, fromLevel: Int, toLevel: Int)
actual abstract fun copyTo(target: ColorBuffer, fromSide: CubemapSide, fromLevel: Int, toLevel: Int)
Link copied to clipboard
actual abstract fun destroy()
expect abstract fun destroy()
actual abstract fun destroy()
Link copied to clipboard
actual abstract fun filter(min: MinifyingFilter, mag: MagnifyingFilter)
expect abstract fun filter(min: MinifyingFilter, mag: MagnifyingFilter)
actual abstract fun filter(min: MinifyingFilter, mag: MagnifyingFilter)
Link copied to clipboard
actual abstract fun generateMipmaps()
expect abstract fun generateMipmaps()
actual abstract fun generateMipmaps()
Link copied to clipboard
fun Cubemap.imageBinding(level: Int = 0, imageAccess: ImageAccess): CubemapImageBinding
Link copied to clipboard
abstract fun read(side: CubemapSide, target: ByteBuffer, targetFormat: ColorFormat = format, targetType: ColorType = type, level: Int = 0)
Link copied to clipboard
abstract fun write(side: CubemapSide, source: ByteBuffer, sourceFormat: ColorFormat = format, sourceType: ColorType = type, level: Int = 0)
actual abstract fun write(side: CubemapSide, source: MPPBuffer, sourceFormat: ColorFormat, sourceType: ColorType, x: Int, y: Int, width: Int, height: Int, level: Int)
expect abstract fun write(side: CubemapSide, source: MPPBuffer, sourceFormat: ColorFormat, sourceType: ColorType, x: Int, y: Int, width: Int, height: Int, level: Int)
abstract fun write(side: CubemapSide, source: TexImageSource, sourceFormat: ColorFormat = this.format, sourceType: ColorType = this.type, x: Int = 0, y: Int = 0, level: Int = 0)
abstract fun write(side: CubemapSide, source: ArrayBufferView<ArrayBufferLike>, sourceFormat: ColorFormat, sourceType: ColorType, x: Int = 0, y: Int = 0, width: Int = this.width, height: Int = this.width, level: Int = 0)
actual abstract fun write(side: CubemapSide, source: MPPBuffer, sourceFormat: ColorFormat, sourceType: ColorType, x: Int, y: Int, width: Int, height: Int, level: Int)