The CubeTexture object represents a cube texture uploaded to a rendering context.

Defines a cube map texture for use during rendering. Cube mapping is used for many rendering techniques, such as environment maps, skyboxes, and skylight illumination.


You cannot create a CubeTexture object directly; use the Context3D createCubeTexture() instead.


methods:

uploadCompressedTextureFromByteArray(data, byteArrayOffset, async)

Uploads a cube texture in compressed format from a byte array. (not supported)


uploadFromBitmapData(source, side, miplevel)

Uploads a component of a cube map texture from a BitmapData object.

source - BitmapData object.

side - A code indicating which side of the cube to upload:

positive X : 0

negative X : 1

positive Y : 2

negative Y : 3

positive Z : 4

negative Z : 5

miplevel - (default = 0) - the mip level to be loaded, level zero being the top-level full-resolution image. The default value is zero.

uploadFromByteArray(data, byteArrayOffset, side, miplevel)

Uploads a component of a cube map texture from a ByteArray object. (not supported)


Created with the Personal Edition of HelpNDoc: Free EPub producer