new TextureCube()
Members
-
dataType
-
The texture's data type
- See:
-
filter
-
A
TextureFilter
object defining how the texture should be filtered during sampling. -
format
-
The texture's format
- See:
-
maxAnisotropy
-
The maximum anisotropy used when sampling. Limited to
capabilities#DEFAULT_TEXTURE_MAX_ANISOTROPY
-
name
-
The name of the texture.
-
size
-
The cube texture's size
Methods
-
generateMipmap()
-
Generates a mip map chain.
-
initEmpty(size, format, dataType)
-
Inits an empty texture.
Parameters:
Name Type Description size
The size of the texture.
format
TextureFormat The texture's format.
dataType
DataType The texture's data format.
-
isReady()
-
Defines whether data has been uploaded to the texture or not.
-
uploadData(data, size, generateMips, format, dataType)
-
Initializes the texture with the given data.
Parameters:
Name Type Description data
A array of typed arrays (per
CubeFace
) containing the initial data.size
The size of the texture.
generateMips
Whether or not a mip chain should be generated.
format
TextureFormat The texture's format.
dataType
DataType The texture's data format.
-
uploadImages(data, generateMips, format, dataType)
-
Initializes the texture with the given Images.
Parameters:
Name Type Description data
A array of typed arrays (per
CubeFace
) containing the initial data.generateMips
Whether or not a mip chain should be generated.
format
TextureFormat The texture's format.
dataType
DataType The texture's data format.
-
uploadImagesToMipLevel(data, mipLevel, format, dataType)
-
Initializes a miplevel with the given Images.
Parameters:
Name Type Description data
A array of typed arrays (per
CubeFace
) containing the initial data.mipLevel
The mip-level to initialize.
format
TextureFormat The texture's format.
dataType
DataType The texture's data format.