CubemapImageData

abstract class CubemapImageData(val width: Int, val height: Int, val format: ColorFormat, val type: ColorType, val mipmaps: Int, val sides: List<MPPBuffer>, val mipmapSides: List<MPPBuffer>) : AutoCloseable(source)

Represents the image data of a cubemap, a texture with six sides corresponding to the faces of a cube. The data is stored for each side and its corresponding mipmap levels if applicable.

Constructors

Link copied to clipboard
constructor(width: Int, height: Int, format: ColorFormat, type: ColorType, mipmaps: Int, sides: List<MPPBuffer>, mipmapSides: List<MPPBuffer>)

Properties

Link copied to clipboard

The color format used for the cubemap image data.

Link copied to clipboard
val height: Int

The height of each side of the cubemap.

Link copied to clipboard

The number of mipmap levels available for the cubemap image.

Link copied to clipboard

The list of data buffers for mipmap levels beyond the base level for each cubemap face.

Link copied to clipboard

The list of data buffers for each cubemap face, corresponding to the base level (level 0).

Link copied to clipboard

The color type used for the cubemap image data, defining the bit depth and other characteristics.

Link copied to clipboard
val width: Int

The width of each side of the cubemap.

Functions

Link copied to clipboard
expect abstract fun close()
Link copied to clipboard
fun side(cubemapSide: CubemapSide, level: Int): MPPBuffer

Retrieves the data buffer for a specific side of the cubemap at the specified mipmap level. For the base level (level 0), the data is retrieved from the sides property, and for other mipmap levels, the data is retrieved from the mipmapSides property.