Creates a 2D texture.
The WebGL2 rendering context of the texture.
The negative X-axis face of the texture.
The positive X-axis face of the texture.
The negative Y-axis face of the texture.
The positive Y-axis face of the texture.
The negative Z-axis face of the texture.
The positive Z-axis face of the texture.
The magnification filter to use on the texture.
The minification filter to use on the texture.
The function to use when wrapping the texture across the S-axis.
The function to use when wrapping the texture across the T-axis.
Readonly
contextThe rendering context of this texture.
Readonly
internalThe WebGL texture represented by this object.
Readonly
targetThe binding point of this texture.
The magnification filter for this texture.
The magnification filter for this texture.
The minification filter for this texture.
The minification filter for this texture.
The negative X-axis face of this texture.
The negative X-axis face of this texture.
The negative Y-axis face of this texture.
The negative Y-axis face of this texture.
The negative Z-axis face of this texture.
The negative Z-axis face of this texture.
The positive X-axis face of this texture.
The positive X-axis face of this texture.
The positive Y-axis face of this texture.
The positive Y-axis face of this texture.
The positive Z-axis face of this texture.
The positive Z-axis face of this texture.
The wrapping function of this texture in the S direction.
The wrapping function of this texture in the S direction.
The wrapping function of this texture in the T direction.
The wrapping function of this texture in the T direction.
Gets a face of this texture.
The target of the face.
The face.
Sets a face of this texture.
The target of the face.
The face.
Executes the given function with this texture bound, then re-binds the previously-bound texture.
The function to execute.
The return value of the executed function.
Static
fromCreates a basic cubemap from image URLs. The cubemap will appear magenta until the images load.
The rendering context of the cubemap.
The URL of the image on the positive X-axis face.
The URL of the image on the negative X-axis face.
The URL of the image on the positive Y-axis face.
The URL of the image on the negative Y-axis face.
The URL of the image on the positive Z-axis face.
The URL of the image on the negative Z-axis face.
A basic 2D texture.
Static
fromCreates a basic cubemap from pixel sources.
The rendering context of the cubemap.
The pixel source of the positive X-axis face.
The pixel source of the negative X-axis face.
The pixel source of the positive Y-axis face.
The pixel source of the negative Y-axis face.
The pixel source of the positive Z-axis face.
The pixel source of the negative Z-axis face.
A basic cubemap.
Static
unbindUnbinds the texture from the given binding point.
The rendering context.
The target.
Generated using TypeDoc
A cubemap texture.
See
Cubemaps