Menu - Top - Home - Donate to Me

H3DU.CubeMap

Back to documentation index.

H3DU.CubeMap(textures)

A cube map, or a set of six textures forming the sides of a cube.

Parameters

Methods

H3DU.CubeMap#getHeight()

Gets this texture's known height.

Return Value

This texture's height in pixels. Will be 0 if the texture's image data wasn't loaded yet. (Type: number)

H3DU.CubeMap#getTexture(index)

Gets a texture used by this cube map.

Parameters

Return Value

The texture with the given index, or null if the index is out of range. (Type: H3DU.Texture)

H3DU.CubeMap#getWidth()

Gets this texture's known width.

Return Value

This texture's width in pixels. Will be 0 if the texture's image data wasn't loaded yet. (Type: number)

H3DU.CubeMap#setTexture(index, texture)

Sets a texture used by this cube map.

Parameters

Return Value

This object. (Type: H3DU.CubeMap)

Back to documentation index.