Constructor
new DepthTexture2D(spec)
Instantiates a DepthTexture2D object.
- Source:
Parameters:
Name | Type | Description | ||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
spec |
Object
|
The specification arguments.
|
Extends
Methods
bind(location) → {Texture2D}
Binds the texture object to the provided texture unit location.
- Inherited From:
- Source:
Parameters:
Name | Type | Default | Description |
---|---|---|---|
location |
number
|
0 | The texture unit location index. Defaults to 0. |
bufferData(data, width, height) → {Texture2D}
Buffer data into the texture.
- Inherited From:
- Source:
Parameters:
Name | Type | Description |
---|---|---|
data |
Array
|
ArrayBuffer
|
The data array to buffer. |
width |
number
|
The width of the data. |
height |
number
|
The height of the data. |
bufferSubData(data, xOffset, yOffset, width, height) → {Texture2D}
Buffer partial data into the texture.
- Inherited From:
- Source:
Parameters:
Name | Type | Default | Description |
---|---|---|---|
data |
Array
|
ArrayBuffer
|
The data array to buffer. | |
xOffset |
number
|
0 | The x offset at which to buffer. |
yOffset |
number
|
0 | The y offset at which to buffer. |
width |
number
|
The width of the data. | |
height |
number
|
The height of the data. |
resize(width, height) → {Texture2D}
Resize the underlying texture. This clears the texture data.
- Inherited From:
- Source:
Parameters:
Name | Type | Description |
---|---|---|
width |
number
|
The new width of the texture. |
height |
number
|
The new height of the texture. |
setParameters(params) → {Texture2D}
Set the texture parameters.
- Inherited From:
- Source:
Parameters:
Name | Type | Description | |||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
params |
Object
|
The parameters by name.
|