loadCubemapImage

abstract fun loadCubemapImage(fileOrUrl: String, formatHint: ImageFileFormat?): CubemapImageData(source)

Loads a cubemap image from a file or URL. A cubemap is a texture typically used in 3D rendering, consisting of six images representing the sides of a cube.

Return

A CubemapImageData instance representing the loaded cubemap image. The caller is responsible for managing the lifecycle of the returned object and closing it when no longer needed.

Parameters

fileOrUrl

A string specifying the file location or URL of the cubemap image.

formatHint

An optional hint for the image file format. This can help the loader interpret the data correctly if the format cannot be inferred automatically.


abstract fun loadCubemapImage(buffer: MPPBuffer, name: String?, formatHint: ImageFileFormat?): CubemapImageData(source)

Loads a cubemap image from the provided buffer. The cubemap is typically a texture with six faces corresponding to the sides of a cube, used in 3D rendering.

Return

a CubemapImageData instance representing the loaded cubemap image. The caller is responsible for managing the lifecycle of the returned object and closing it when no longer needed.

Parameters

buffer

an MPPBuffer containing the image data for the cubemap.

name

an optional name for the image, typically used for error reporting and debugging.

formatHint

an optional hint for the file format of the image data in the buffer.