A CubeMap is a 6 sided 3D texture.
    public class CubeMap : Resource

A 6-sided 3D texture typically used for faking reflections. It can be used to make an object look as if it’s reflecting its surroundings. This usually delivers much better performance than other reflection methods.

Inheritance Chain


    public CubeMap()


    public int Flags { get; set; }

The render flags for the CubeMap. See the FLAG_* constants for details.

    public float LossyStorageQuality { get; set; }

The lossy storage quality of the CubeMap if the storage mode is set to STORAGE_COMPRESS_LOSSY.

    public Storage StorageMode { get; set; }

The CubeMap’s storage mode. See STORAGE_* constants.


    public int GetFlags()

Getter for Flags

    public int GetHeight()

Returns the CubeMap’s height.

    public float GetLossyStorageQuality()

Getter for LossyStorageQuality

    public Image GetSide(Side side)

Returns an Image for a side of the CubeMap using one of the side constants or an integer 0-5.

    public Storage GetStorage()

Getter for StorageMode

    public int GetWidth()

Returns the CubeMap’s width.

    public void SetFlags(int flags)

Setter for Flags

    public void SetLossyStorageQuality(float quality)

Setter for LossyStorageQuality

    public void SetSide(Side side, Image image)

Sets an Image for a side of the CubeMap using one of the side constants or an integer 0-5.

    public void SetStorage(Storage mode)

Setter for StorageMode

Inner Types


Name Value Description


Name Value Description
Left 0 Identifier for the left face of the [code]CubeMap[/code].
Right 1 Identifier for the right face of the [code]CubeMap[/code].
Bottom 2 Identifier for the bottom face of the [code]CubeMap[/code].
Top 3 Identifier for the top face of the [code]CubeMap[/code].
Front 4 Identifier for the front face of the [code]CubeMap[/code].
Back 5 Identifier for the back face of the [code]CubeMap[/code].


Name Value Description
Raw 0 Store the [code]CubeMap[/code] without any compression.
CompressLossy 1 Store the [code]CubeMap[/code] with strong compression that reduces image quality.
CompressLossless 2 Store the [code]CubeMap[/code] with moderate compression that doesn’t reduce image quality.