Constructor
new TextureCubeMap(spec, callback)
Instantiates a TextureCubeMap object.
- Source:
Parameters:
Name | Type | Description | |||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
spec |
Object
|
The specification arguments.
|
|||||||||||||||||||||||||||||||||||||||||||||
callback |
function
|
The callback to be executed if the data is loaded asynchronously via a URL. |
Methods
bind(location) → {TextureCubeMap}
Binds the texture object to the provided texture unit location.
- Source:
Parameters:
Name | Type | Default | Description |
---|---|---|---|
location |
number
|
0 | The texture unit location index. Defaults to 0. |
bufferData(target, data) → {TextureCubeMap}
Buffer data into the respective cube map face.
- Source:
Parameters:
Name | Type | Description |
---|---|---|
target |
string
|
The face target. |
data |
Object
|
null
|
The face data. |
setParameters(params) → {TextureCubeMap}
Set the texture parameters.
- Source:
Parameters:
Name | Type | Description | |||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
params |
Object
|
The parameters by name.
|