Creates a texture.
The WebGL2 rendering context of the texture.
The binding point of the texture.
The faces 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.
Private
Readonly
facesThe faces 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 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
Private
assignAssigns a texture unit as active.
The rendering context.
The texture unit.
Static
Private
bindBinds a framebuffer to a binding point.
The rendering context of the framebuffer.
The target binding point.
The framebuffer.
Static
Private
getGets the internal representation of the currently-bound texture.
The context that the texture is bound to.
The target that the texture is bound to.
The currently-bound texture.
Static
unbindUnbinds the texture from the given binding point.
The rendering context.
The target.
Generated using TypeDoc
An array of data that can be randomly accessed in a shader program.
See
Textures