The WebGLRenderingContext interface provides an interface to
OpenGL ES 2.0 graphics rendering context for the drawing surface
an HTML <canvas>
element.
The WebGLRenderingContext interface provides an interface to OpenGL ES 2.0 graphics rendering context for the drawing surface an HTML `<canvas>` element.
(active-texture this texture)
Method.
The WebGLRenderingContext.activeTexture() method of the WebGL specifies which texture unit to make active.
void gl.activeTexture(texture);
See also: https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/activeTexture
Method. The WebGLRenderingContext.activeTexture() method of the WebGL specifies which texture unit to make active. `void gl.activeTexture(texture);` See also: `https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/activeTexture`
(attach-shader this program shader)
Method.
The WebGLRenderingContext.attachShader() method of the WebGL
attaches either a fragment or vertex web.gl.WebGLShader
to
web.gl.WebGLProgram
.
void gl.attachShader(program, shader);
See also: https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/attachShader
Method. The WebGLRenderingContext.attachShader() method of the WebGL attaches either a fragment or vertex `web.gl.WebGLShader` to `web.gl.WebGLProgram`. `void gl.attachShader(program, shader);` See also: `https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/attachShader`
(bind-attrib-location this program index name)
Method.
The WebGLRenderingContext.bindAttribLocation() method of the API binds a generic vertex index to an attribute variable.
void gl.bindAttribLocation(program, index, name);
See also: https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/bindAttribLocation
Method. The WebGLRenderingContext.bindAttribLocation() method of the API binds a generic vertex index to an attribute variable. `void gl.bindAttribLocation(program, index, name);` See also: `https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/bindAttribLocation`
(bind-buffer this target buffer)
Method.
The WebGLRenderingContext.bindBuffer() method of the WebGL API
a given web.gl.WebGLBuffer
to a target.
void gl.bindBuffer(target, buffer);
See also: https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/bindBuffer
Method. The WebGLRenderingContext.bindBuffer() method of the WebGL API a given `web.gl.WebGLBuffer` to a target. `void gl.bindBuffer(target, buffer);` See also: `https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/bindBuffer`
(bind-framebuffer this target framebuffer)
Method.
The WebGLRenderingContext.bindFramebuffer() method of the WebGL
binds a given web.gl.WebGLFramebuffer
to a target.
void gl.bindFramebuffer(target, framebuffer);
See also: https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/bindFramebuffer
Method. The WebGLRenderingContext.bindFramebuffer() method of the WebGL binds a given `web.gl.WebGLFramebuffer` to a target. `void gl.bindFramebuffer(target, framebuffer);` See also: `https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/bindFramebuffer`
(bind-renderbuffer this target renderbuffer)
Method.
The WebGLRenderingContext.bindRenderbuffer() method of the WebGL
binds a given web.gl.WebGLRenderbuffer
to a target, which must
gl.RENDERBUFFER.
void gl.bindRenderbuffer(target, renderbuffer);
See also: https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/bindRenderbuffer
Method. The WebGLRenderingContext.bindRenderbuffer() method of the WebGL binds a given `web.gl.WebGLRenderbuffer` to a target, which must gl.RENDERBUFFER. `void gl.bindRenderbuffer(target, renderbuffer);` See also: `https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/bindRenderbuffer`
(bind-texture this target texture)
Method.
The WebGLRenderingContext.bindTexture() method of the WebGL API
a given web.gl.WebGLTexture
to a target (binding point).
void gl.bindTexture(target, texture);
See also: https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/bindTexture
Method. The WebGLRenderingContext.bindTexture() method of the WebGL API a given `web.gl.WebGLTexture` to a target (binding point). `void gl.bindTexture(target, texture);` See also: `https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/bindTexture`
(blend-color this red green blue alpha)
Method.
The WebGLRenderingContext.blendColor() method of the WebGL API used to set the source and destination blending factors.
void gl.blendColor(red, green, blue, alpha);
See also: https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/blendColor
Method. The WebGLRenderingContext.blendColor() method of the WebGL API used to set the source and destination blending factors. `void gl.blendColor(red, green, blue, alpha);` See also: `https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/blendColor`
(blend-equation this mode)
Method.
The WebGLRenderingContext.blendEquation() method of the WebGL is used to set both the RGB blend equation and alpha blend equation a single equation.
void gl.blendEquation(mode);
See also: https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/blendEquation
Method. The WebGLRenderingContext.blendEquation() method of the WebGL is used to set both the RGB blend equation and alpha blend equation a single equation. `void gl.blendEquation(mode);` See also: `https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/blendEquation`
(blend-equation-separate this mode-rgb mode-alpha)
Method.
The WebGLRenderingContext.blendEquationSeparate() method of the API is used to set the RGB blend equation and alpha blend equation
void gl.blendEquationSeparate(modeRGB, modeAlpha);
See also: https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/blendEquationSeparate
Method. The WebGLRenderingContext.blendEquationSeparate() method of the API is used to set the RGB blend equation and alpha blend equation `void gl.blendEquationSeparate(modeRGB, modeAlpha);` See also: `https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/blendEquationSeparate`
(blend-func this sfactor dfactor)
Method.
The WebGLRenderingContext.blendFunc() method of the WebGL API which function is used for blending pixel arithmetic.
void gl.blendFunc(sfactor, dfactor);
See also: https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/blendFunc
Method. The WebGLRenderingContext.blendFunc() method of the WebGL API which function is used for blending pixel arithmetic. `void gl.blendFunc(sfactor, dfactor);` See also: `https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/blendFunc`
(blend-func-separate this src-rgb dst-rgb src-alpha dst-alpha)
Method.
The WebGLRenderingContext.blendFuncSeparate() method of the WebGL defines which function is used for blending pixel arithmetic RGB and alpha components separately.
void gl.blendFuncSeparate(srcRGB, dstRGB, srcAlpha, dstAlpha);
See also: https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/blendFuncSeparate
Method. The WebGLRenderingContext.blendFuncSeparate() method of the WebGL defines which function is used for blending pixel arithmetic RGB and alpha components separately. `void gl.blendFuncSeparate(srcRGB, dstRGB, srcAlpha, dstAlpha);` See also: `https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/blendFuncSeparate`
(buffer-data this & args)
Method.
The WebGLRenderingContext.bufferData() method of the WebGL API and creates the buffer object's data store.
`// WebGL1: void gl.bufferData(target, size, usage); void gl.bufferData(target, ArrayBuffer? srcData, usage); void gl.bufferData(target, ArrayBufferView srcData, usage);
// WebGL2: void gl.bufferData(target, ArrayBufferView srcData, usage, srcOffset, length);`
See also: https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/bufferData
Method. The WebGLRenderingContext.bufferData() method of the WebGL API and creates the buffer object's data store. `// WebGL1: void gl.bufferData(target, size, usage); void gl.bufferData(target, ArrayBuffer? srcData, usage); void gl.bufferData(target, ArrayBufferView srcData, usage); // WebGL2: void gl.bufferData(target, ArrayBufferView srcData, usage, srcOffset, length);` See also: `https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/bufferData`
(buffer-sub-data this & args)
Method.
The WebGLRenderingContext.bufferSubData() method of the WebGL updates a subset of a buffer object's data store.
`// WebGL1: void gl.bufferSubData(target, offset, ArrayBuffer srcData); void gl.bufferSubData(target, offset, ArrayBufferView srcData);
// WebGL2: void gl.bufferSubData(target, dstByteOffset, ArrayBufferView srcData, srcOffset, length);`
See also: https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/bufferSubData
Method. The WebGLRenderingContext.bufferSubData() method of the WebGL updates a subset of a buffer object's data store. `// WebGL1: void gl.bufferSubData(target, offset, ArrayBuffer srcData); void gl.bufferSubData(target, offset, ArrayBufferView srcData); // WebGL2: void gl.bufferSubData(target, dstByteOffset, ArrayBufferView srcData, srcOffset, length);` See also: `https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/bufferSubData`
(canvas this)
Property.
[Read Only]
The WebGLRenderingContext.canvas property is a read-only reference
the web.canvas.HTMLCanvasElement
or web.canvas.OffscreenCanvas
that is associated with the context. It might be js.null
if
is not associated with a <canvas>
element or an web.canvas.OffscreenCanvas
gl.canvas;
See also: https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/canvas
Property. [Read Only] The WebGLRenderingContext.canvas property is a read-only reference the `web.canvas.HTMLCanvasElement` or `web.canvas.OffscreenCanvas` that is associated with the context. It might be `js.null` if is not associated with a `<canvas>` element or an `web.canvas.OffscreenCanvas` `gl.canvas;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/canvas`
(check-framebuffer-status this target)
Method.
The WebGLRenderingContext.checkFramebufferStatus() method of
WebGL API returns the completeness status of the web.gl.WebGLFramebuffer
GLenum gl.checkFramebufferStatus(target);
See also: https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/checkFramebufferStatus
Method. The WebGLRenderingContext.checkFramebufferStatus() method of WebGL API returns the completeness status of the `web.gl.WebGLFramebuffer` `GLenum gl.checkFramebufferStatus(target);` See also: `https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/checkFramebufferStatus`
(clear this mask)
Method.
The WebGLRenderingContext.clear() method of the WebGL API clears to preset values.
void gl.clear(mask);
See also: https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/clear
Method. The WebGLRenderingContext.clear() method of the WebGL API clears to preset values. `void gl.clear(mask);` See also: `https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/clear`
(clear-color this red green blue alpha)
Method.
The WebGLRenderingContext.clearColor() method of the WebGL API the color values used when clearing color buffers.
void gl.clearColor(red, green, blue, alpha);
See also: https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/clearColor
Method. The WebGLRenderingContext.clearColor() method of the WebGL API the color values used when clearing color buffers. `void gl.clearColor(red, green, blue, alpha);` See also: `https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/clearColor`
(clear-depth this depth)
Method.
The WebGLRenderingContext.clearDepth() method of the WebGL API the clear value for the depth buffer.
void gl.clearDepth(depth);
See also: https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/clearDepth
Method. The WebGLRenderingContext.clearDepth() method of the WebGL API the clear value for the depth buffer. `void gl.clearDepth(depth);` See also: `https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/clearDepth`
(clear-stencil this s)
Method.
The WebGLRenderingContext.clearStencil() method of the WebGL specifies the clear value for the stencil buffer.
void gl.clearStencil(s);
See also: https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/clearStencil
Method. The WebGLRenderingContext.clearStencil() method of the WebGL specifies the clear value for the stencil buffer. `void gl.clearStencil(s);` See also: `https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/clearStencil`
(color-mask this red green blue alpha)
Method.
The WebGLRenderingContext.colorMask() method of the WebGL API
which color components to enable or to disable when drawing or
to a web.gl.WebGLFramebuffer
.
void gl.colorMask(red, green, blue, alpha);
See also: https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/colorMask
Method. The WebGLRenderingContext.colorMask() method of the WebGL API which color components to enable or to disable when drawing or to a `web.gl.WebGLFramebuffer`. `void gl.colorMask(red, green, blue, alpha);` See also: `https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/colorMask`
(commit this)
Method.
[Experimental]
The WebGLRenderingContext.commit() method pushes frames back
the original web.canvas.HTMLCanvasElement
, if the context is
directly fixed to a specific canvas.
void WebGLRenderingContext.commit()
See also: https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/commit
Method. [Experimental] The WebGLRenderingContext.commit() method pushes frames back the original `web.canvas.HTMLCanvasElement`, if the context is directly fixed to a specific canvas. `void WebGLRenderingContext.commit()` See also: `https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/commit`
(compile-shader this shader)
Method.
The WebGLRenderingContext.compileShader() method of the WebGL
compiles a GLSL shader into binary data so that it can be used
a web.gl.WebGLProgram
.
void gl.compileShader(shader);
See also: https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/compileShader
Method. The WebGLRenderingContext.compileShader() method of the WebGL compiles a GLSL shader into binary data so that it can be used a `web.gl.WebGLProgram`. `void gl.compileShader(shader);` See also: `https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/compileShader`
(compressed-tex-image this & args)
Method.
The WebGLRenderingContext.compressedTexImage2D() and WebGL2RenderingContext.compressedTexImage3D() of the WebGL API specify a two- or three-dimensional texture in a compressed format.
`// WebGL 1: void gl.compressedTexImage2D(target, level, internalformat, width, height, border, ArrayBufferView? pixels);
// Additionally available in WebGL 2: // read from buffer bound to gl.PIXEL_UNPACK_BUFFER void gl.compressedTexImage2D(target, level, internalformat, width, height, border, GLsizei imageSize, GLintptr offset); void gl.compressedTexImage2D(target, level, internalformat, width, height, border, ArrayBufferView srcData, optional srcOffset, optional srcLengthOverride);
// read from buffer bound to gl.PIXEL_UNPACK_BUFFER void gl.compressedTexImage3D(target, level, internalformat, width, height, depth, border, GLsizei imageSize, GLintptr offset); void gl.compressedTexImage3D(target, level, internalformat, width, height, depth, border, ArrayBufferView srcData, optional srcOffset, optional srcLengthOverride);`
See also: https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/compressedTexImage2D
Method. The WebGLRenderingContext.compressedTexImage2D() and WebGL2RenderingContext.compressedTexImage3D() of the WebGL API specify a two- or three-dimensional texture in a compressed format. `// WebGL 1: void gl.compressedTexImage2D(target, level, internalformat, width, height, border, ArrayBufferView? pixels); // Additionally available in WebGL 2: // read from buffer bound to gl.PIXEL_UNPACK_BUFFER void gl.compressedTexImage2D(target, level, internalformat, width, height, border, GLsizei imageSize, GLintptr offset); void gl.compressedTexImage2D(target, level, internalformat, width, height, border, ArrayBufferView srcData, optional srcOffset, optional srcLengthOverride); // read from buffer bound to gl.PIXEL_UNPACK_BUFFER void gl.compressedTexImage3D(target, level, internalformat, width, height, depth, border, GLsizei imageSize, GLintptr offset); void gl.compressedTexImage3D(target, level, internalformat, width, height, depth, border, ArrayBufferView srcData, optional srcOffset, optional srcLengthOverride);` See also: `https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/compressedTexImage2D`
(compressed-tex-sub-image2d this & args)
Method.
The WebGLRenderingContext.compressedTexSubImage2D() method of WebGL API specifies a two-dimensional sub-rectangle for a texture in a compressed format.
`// WebGL 1: void gl.compressedTexSubImage2D(target, level, xoffset, yoffset, width, height, format, ArrayBufferView? pixels);
// Additionally available in WebGL 2: void gl.compressedTexSubImage2D(target, level, xoffset, yoffset, width, height, format, imageSize, offset); void gl.compressedTexSubImage2D(target, level, xoffset, yoffset, width, height, format, ArrayBufferView srcData, optional srcOffset, optional srcLengthOverride);`
See also: https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/compressedTexSubImage2D
Method. The WebGLRenderingContext.compressedTexSubImage2D() method of WebGL API specifies a two-dimensional sub-rectangle for a texture in a compressed format. `// WebGL 1: void gl.compressedTexSubImage2D(target, level, xoffset, yoffset, width, height, format, ArrayBufferView? pixels); // Additionally available in WebGL 2: void gl.compressedTexSubImage2D(target, level, xoffset, yoffset, width, height, format, imageSize, offset); void gl.compressedTexSubImage2D(target, level, xoffset, yoffset, width, height, format, ArrayBufferView srcData, optional srcOffset, optional srcLengthOverride);` See also: `https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/compressedTexSubImage2D`
(copy-tex-image2d this target level internalformat x y width height border)
Method.
The WebGLRenderingContext.copyTexImage2D() method of the WebGL
copies pixels from the current web.gl.WebGLFramebuffer
into
2D texture image.
void gl.copyTexImage2D(target, level, internalformat, x, y, width, height, border);
See also: https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/copyTexImage2D
Method. The WebGLRenderingContext.copyTexImage2D() method of the WebGL copies pixels from the current `web.gl.WebGLFramebuffer` into 2D texture image. `void gl.copyTexImage2D(target, level, internalformat, x, y, width, height, border);` See also: `https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/copyTexImage2D`
(copy-tex-sub-image2d this target level xoffset yoffset x y width height)
Method.
The WebGLRenderingContext.copyTexSubImage2D() method of the WebGL
copies pixels from the current web.gl.WebGLFramebuffer
into
existing 2D texture sub-image.
void gl.copyTexSubImage2D(target, level, xoffset, yoffset, x, y, width, height);
See also: https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/copyTexSubImage2D
Method. The WebGLRenderingContext.copyTexSubImage2D() method of the WebGL copies pixels from the current `web.gl.WebGLFramebuffer` into existing 2D texture sub-image. `void gl.copyTexSubImage2D(target, level, xoffset, yoffset, x, y, width, height);` See also: `https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/copyTexSubImage2D`
(create-buffer this)
Method.
The WebGLRenderingContext.createBuffer() method of the WebGL
creates and initializes a web.gl.WebGLBuffer
storing data such
vertices or colors.
WebGLBuffer gl.createBuffer();
See also: https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/createBuffer
Method. The WebGLRenderingContext.createBuffer() method of the WebGL creates and initializes a `web.gl.WebGLBuffer` storing data such vertices or colors. `WebGLBuffer gl.createBuffer();` See also: `https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/createBuffer`
(create-framebuffer this)
Method.
The WebGLRenderingContext.createFramebuffer() method of the WebGL
creates and initializes a web.gl.WebGLFramebuffer
object.
WebGLFramebuffer gl.createFramebuffer();
See also: https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/createFramebuffer
Method. The WebGLRenderingContext.createFramebuffer() method of the WebGL creates and initializes a `web.gl.WebGLFramebuffer` object. `WebGLFramebuffer gl.createFramebuffer();` See also: `https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/createFramebuffer`
(create-program this)
Method.
The WebGLRenderingContext.createProgram() method of the WebGL
creates and initializes a web.gl.WebGLProgram
object.
WebGLProgram gl.createProgram();
See also: https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/createProgram
Method. The WebGLRenderingContext.createProgram() method of the WebGL creates and initializes a `web.gl.WebGLProgram` object. `WebGLProgram gl.createProgram();` See also: `https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/createProgram`
(create-renderbuffer this)
Method.
The WebGLRenderingContext.createRenderbuffer() method of the
API creates and initializes a web.gl.WebGLRenderbuffer
object.
WebGLRenderbuffer gl.createRenderbuffer();
See also: https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/createRenderbuffer
Method. The WebGLRenderingContext.createRenderbuffer() method of the API creates and initializes a `web.gl.WebGLRenderbuffer` object. `WebGLRenderbuffer gl.createRenderbuffer();` See also: `https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/createRenderbuffer`
(create-shader this type)
Method.
The WebGLRenderingContext.createShader() method of the WebGL
creates a web.gl.WebGLShader
that can then be configured further
WebGLRenderingContext.shaderSource()
and WebGLRenderingContext.compileShader()
.
WebGLShader gl.createShader(type);
See also: https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/createShader
Method. The WebGLRenderingContext.createShader() method of the WebGL creates a `web.gl.WebGLShader` that can then be configured further `WebGLRenderingContext.shaderSource()` and `WebGLRenderingContext.compileShader()`. `WebGLShader gl.createShader(type);` See also: `https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/createShader`
(create-texture this)
Method.
The WebGLRenderingContext.createTexture() method of the WebGL
creates and initializes a web.gl.WebGLTexture
object.
WebGLTexture gl.createTexture();
See also: https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/createTexture
Method. The WebGLRenderingContext.createTexture() method of the WebGL creates and initializes a `web.gl.WebGLTexture` object. `WebGLTexture gl.createTexture();` See also: `https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/createTexture`
(cull-face this mode)
Method.
The WebGLRenderingContext.cullFace() method of the WebGL API whether or not front- and/or back-facing polygons can be culled.
void gl.cullFace(mode);
See also: https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/cullFace
Method. The WebGLRenderingContext.cullFace() method of the WebGL API whether or not front- and/or back-facing polygons can be culled. `void gl.cullFace(mode);` See also: `https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/cullFace`
(delete-buffer this buffer)
Method.
The WebGLRenderingContext.deleteBuffer() method of the WebGL
deletes a given web.gl.WebGLBuffer
. This method has no effect
the buffer has already been deleted.
void gl.deleteBuffer(buffer);
See also: https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/deleteBuffer
Method. The WebGLRenderingContext.deleteBuffer() method of the WebGL deletes a given `web.gl.WebGLBuffer`. This method has no effect the buffer has already been deleted. `void gl.deleteBuffer(buffer);` See also: `https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/deleteBuffer`
(delete-framebuffer this framebuffer)
Method.
The WebGLRenderingContext.deleteFramebuffer() method of the WebGL
deletes a given web.gl.WebGLFramebuffer
object. This method
no effect if the frame buffer has already been deleted.
void gl.deleteFramebuffer(framebuffer);
See also: https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/deleteFramebuffer
Method. The WebGLRenderingContext.deleteFramebuffer() method of the WebGL deletes a given `web.gl.WebGLFramebuffer` object. This method no effect if the frame buffer has already been deleted. `void gl.deleteFramebuffer(framebuffer);` See also: `https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/deleteFramebuffer`
(delete-program this program)
Method.
The WebGLRenderingContext.deleteProgram() method of the WebGL
deletes a given web.gl.WebGLProgram
object. This method has
effect if the program has already been deleted.
void gl.deleteProgram(program);
See also: https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/deleteProgram
Method. The WebGLRenderingContext.deleteProgram() method of the WebGL deletes a given `web.gl.WebGLProgram` object. This method has effect if the program has already been deleted. `void gl.deleteProgram(program);` See also: `https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/deleteProgram`
(delete-renderbuffer this renderbuffer)
Method.
The WebGLRenderingContext.deleteRenderbuffer() method of the
API deletes a given web.gl.WebGLRenderbuffer
object. This method
no effect if the render buffer has already been deleted.
void gl.deleteRenderbuffer(renderbuffer);
See also: https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/deleteRenderbuffer
Method. The WebGLRenderingContext.deleteRenderbuffer() method of the API deletes a given `web.gl.WebGLRenderbuffer` object. This method no effect if the render buffer has already been deleted. `void gl.deleteRenderbuffer(renderbuffer);` See also: `https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/deleteRenderbuffer`
(delete-shader this shader)
Method.
The WebGLRenderingContext.deleteShader() method of the WebGL
marks a given web.gl.WebGLShader
object for deletion. It will
be deleted whenever the shader is no longer in use. This method
no effect if the shader has already been deleted, and the web.gl.WebGLShader
automatically marked for deletion when it is destroyed by the
collector.
void gl.deleteShader(shader);
See also: https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/deleteShader
Method. The WebGLRenderingContext.deleteShader() method of the WebGL marks a given `web.gl.WebGLShader` object for deletion. It will be deleted whenever the shader is no longer in use. This method no effect if the shader has already been deleted, and the `web.gl.WebGLShader` automatically marked for deletion when it is destroyed by the collector. `void gl.deleteShader(shader);` See also: `https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/deleteShader`
(delete-texture this texture)
Method.
The WebGLRenderingContext.deleteTexture() method of the WebGL
deletes a given web.gl.WebGLTexture
object. This method has
effect if the texture has already been deleted.
void gl.deleteTexture(texture);
See also: https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/deleteTexture
Method. The WebGLRenderingContext.deleteTexture() method of the WebGL deletes a given `web.gl.WebGLTexture` object. This method has effect if the texture has already been deleted. `void gl.deleteTexture(texture);` See also: `https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/deleteTexture`
(depth-func this func)
Method.
The WebGLRenderingContext.depthFunc() method of the WebGL API a function that compares incoming pixel depth to the current buffer value.
void gl.depthFunc(func);
See also: https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/depthFunc
Method. The WebGLRenderingContext.depthFunc() method of the WebGL API a function that compares incoming pixel depth to the current buffer value. `void gl.depthFunc(func);` See also: `https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/depthFunc`
(depth-mask this flag)
Method.
The WebGLRenderingContext.depthMask() method of the WebGL API whether writing into the depth buffer is enabled or disabled.
void gl.depthMask(flag);
See also: https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/depthMask
Method. The WebGLRenderingContext.depthMask() method of the WebGL API whether writing into the depth buffer is enabled or disabled. `void gl.depthMask(flag);` See also: `https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/depthMask`
(depth-range this z-near z-far)
Method.
The WebGLRenderingContext.depthRange() method of the WebGL API the depth range mapping from normalized device coordinates to or viewport coordinates.
void gl.depthRange(zNear, zFar);
See also: https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/depthRange
Method. The WebGLRenderingContext.depthRange() method of the WebGL API the depth range mapping from normalized device coordinates to or viewport coordinates. `void gl.depthRange(zNear, zFar);` See also: `https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/depthRange`
(detach-shader this program shader)
Method.
The WebGLRenderingContext.detachShader() method of the WebGL
detaches a previously attached web.gl.WebGLShader
from a web.gl.WebGLProgram
.
void gl.detachShader(program, shader);
See also: https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/detachShader
Method. The WebGLRenderingContext.detachShader() method of the WebGL detaches a previously attached `web.gl.WebGLShader` from a `web.gl.WebGLProgram`. `void gl.detachShader(program, shader);` See also: `https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/detachShader`
(disable this cap)
Method.
The WebGLRenderingContext.disable() method of the WebGL API disables WebGL capabilities for this context.
void gl.disable(cap);
See also: https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/disable
Method. The WebGLRenderingContext.disable() method of the WebGL API disables WebGL capabilities for this context. `void gl.disable(cap);` See also: `https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/disable`
(disable-vertex-attrib-array this index)
Method.
The WebGLRenderingContext.disableVertexAttribArray() method of WebGL API turns the generic vertex attribute array off at a given position.
void gl.disableVertexAttribArray(index);
See also: https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/disableVertexAttribArray
Method. The WebGLRenderingContext.disableVertexAttribArray() method of WebGL API turns the generic vertex attribute array off at a given position. `void gl.disableVertexAttribArray(index);` See also: `https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/disableVertexAttribArray`
(draw-arrays this mode first count)
Method.
The WebGLRenderingContext.drawArrays() method of the WebGL API primitives from array data.
void gl.drawArrays(mode, first, count);
See also: https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/drawArrays
Method. The WebGLRenderingContext.drawArrays() method of the WebGL API primitives from array data. `void gl.drawArrays(mode, first, count);` See also: `https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/drawArrays`
(draw-elements this mode count type offset)
Method.
The WebGLRenderingContext.drawElements() method of the WebGL renders primitives from array data.
void gl.drawElements(mode, count, type, offset);
See also: https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/drawElements
Method. The WebGLRenderingContext.drawElements() method of the WebGL renders primitives from array data. `void gl.drawElements(mode, count, type, offset);` See also: `https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/drawElements`
(drawing-buffer-height this)
Property.
[Read Only]
The read-only WebGLRenderingContext.drawingBufferHeight property
the actual height of the current drawing buffer. It should match
height attribute of the <canvas>
element associated with this
but might differ if the implementation is not able to provide
requested height.
gl.drawingBufferHeight;
See also: https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/drawingBufferHeight
Property. [Read Only] The read-only WebGLRenderingContext.drawingBufferHeight property the actual height of the current drawing buffer. It should match height attribute of the `<canvas>` element associated with this but might differ if the implementation is not able to provide requested height. `gl.drawingBufferHeight;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/drawingBufferHeight`
(drawing-buffer-width this)
Property.
[Read Only]
The read-only WebGLRenderingContext.drawingBufferWidth property
the actual width of the current drawing buffer. It should match
width attribute of the <canvas>
element associated with this
but might differ if the implementation is not able to provide
requested width.
gl.drawingBufferWidth;
See also: https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/drawingBufferWidth
Property. [Read Only] The read-only WebGLRenderingContext.drawingBufferWidth property the actual width of the current drawing buffer. It should match width attribute of the `<canvas>` element associated with this but might differ if the implementation is not able to provide requested width. `gl.drawingBufferWidth;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/drawingBufferWidth`
(enable this cap)
Method.
The WebGLRenderingContext.enable() method of the WebGL API enables WebGL capabilities for this context.
void gl.enable(cap);
See also: https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/enable
Method. The WebGLRenderingContext.enable() method of the WebGL API enables WebGL capabilities for this context. `void gl.enable(cap);` See also: `https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/enable`
(enable-vertex-attrib-array this index)
Method.
The web.gl.WebGLRenderingContext
method enableVertexAttribArray(),
of the WebGL API, turns on the generic vertex attribute array
the specified index into the list of attribute arrays.
void gl.enableVertexAttribArray(index);
See also: https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/enableVertexAttribArray
Method. The `web.gl.WebGLRenderingContext` method enableVertexAttribArray(), of the WebGL API, turns on the generic vertex attribute array the specified index into the list of attribute arrays. `void gl.enableVertexAttribArray(index);` See also: `https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/enableVertexAttribArray`
(finish this)
Method.
The WebGLRenderingContext.finish() method of the WebGL API blocks until all previously called commands are finished.
void gl.finish();
See also: https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/finish
Method. The WebGLRenderingContext.finish() method of the WebGL API blocks until all previously called commands are finished. `void gl.finish();` See also: `https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/finish`
(flush this)
Method.
The WebGLRenderingContext.flush() method of the WebGL API empties buffer commands, causing all commands to be executed as quickly possible.
void gl.flush();
See also: https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/flush
Method. The WebGLRenderingContext.flush() method of the WebGL API empties buffer commands, causing all commands to be executed as quickly possible. `void gl.flush();` See also: `https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/flush`
(framebuffer-renderbuffer this
target
attachment
renderbuffertarget
renderbuffer)
Method.
The WebGLRenderingContext.framebufferRenderbuffer() method of
WebGL API attaches a web.gl.WebGLRenderbuffer
object to a web.gl.WebGLFramebuffer
void gl.framebufferRenderbuffer(target, attachment, renderbuffertarget, renderbuffer);
See also: https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/framebufferRenderbuffer
Method. The WebGLRenderingContext.framebufferRenderbuffer() method of WebGL API attaches a `web.gl.WebGLRenderbuffer` object to a `web.gl.WebGLFramebuffer` `void gl.framebufferRenderbuffer(target, attachment, renderbuffertarget, renderbuffer);` See also: `https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/framebufferRenderbuffer`
(framebuffer-texture2d this target attachment textarget texture level)
Method.
The WebGLRenderingContext.framebufferTexture2D() method of the
API attaches a texture to a web.gl.WebGLFramebuffer
.
void gl.framebufferTexture2D(target, attachment, textarget, texture, level);
See also: https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/framebufferTexture2D
Method. The WebGLRenderingContext.framebufferTexture2D() method of the API attaches a texture to a `web.gl.WebGLFramebuffer`. `void gl.framebufferTexture2D(target, attachment, textarget, texture, level);` See also: `https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/framebufferTexture2D`
(front-face this mode)
Method.
The WebGLRenderingContext.frontFace() method of the WebGL API whether polygons are front- or back-facing by setting a winding
void gl.frontFace(mode);
See also: https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/frontFace
Method. The WebGLRenderingContext.frontFace() method of the WebGL API whether polygons are front- or back-facing by setting a winding `void gl.frontFace(mode);` See also: `https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/frontFace`
(generate-mipmap this target)
Method.
The WebGLRenderingContext.generateMipmap() method of the WebGL
generates a set of mipmaps for a web.gl.WebGLTexture
object.
void gl.generateMipmap(target);
See also: https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/generateMipmap
Method. The WebGLRenderingContext.generateMipmap() method of the WebGL generates a set of mipmaps for a `web.gl.WebGLTexture` object. `void gl.generateMipmap(target);` See also: `https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/generateMipmap`
(get-active-attrib this program index)
Method.
The WebGLRenderingContext.getActiveAttrib() method of the WebGL
returns a web.gl.WebGLActiveInfo
object containing size, type,
name of a vertex attribute. It is generally used when querying
uniforms either for debugging or generic library creation.
WebGLActiveInfo gl.getActiveAttrib(program,index);
See also: https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/getActiveAttrib
Method. The WebGLRenderingContext.getActiveAttrib() method of the WebGL returns a `web.gl.WebGLActiveInfo` object containing size, type, name of a vertex attribute. It is generally used when querying uniforms either for debugging or generic library creation. `WebGLActiveInfo gl.getActiveAttrib(program,index);` See also: `https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/getActiveAttrib`
(get-active-uniform this program index)
Method.
The WebGLRenderingContext.getActiveUniform() method of the WebGL
returns a web.gl.WebGLActiveInfo
object containing size, type,
name of a uniform attribute. It is generally used when querying
uniforms either for debugging or generic library creation.
WebGLActiveInfo WebGLRenderingContext.getActiveUniform(program, index);
See also: https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/getActiveUniform
Method. The WebGLRenderingContext.getActiveUniform() method of the WebGL returns a `web.gl.WebGLActiveInfo` object containing size, type, name of a uniform attribute. It is generally used when querying uniforms either for debugging or generic library creation. `WebGLActiveInfo WebGLRenderingContext.getActiveUniform(program, index);` See also: `https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/getActiveUniform`
(get-attached-shaders this program)
Method.
The WebGLRenderingContext.getAttachedShaders() method of the
API returns a list of web.gl.WebGLShader
objects attached to
web.gl.WebGLProgram
.
sequence<WebGLShader> gl.getAttachedShaders(program);
See also: https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/getAttachedShaders
Method. The WebGLRenderingContext.getAttachedShaders() method of the API returns a list of `web.gl.WebGLShader` objects attached to `web.gl.WebGLProgram`. `sequence<WebGLShader> gl.getAttachedShaders(program);` See also: `https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/getAttachedShaders`
(get-attrib-location this program name)
Method.
The WebGLRenderingContext.getAttribLocation() method of the WebGL
returns the location of an attribute variable in a given web.gl.WebGLProgram
.
GLint gl.getAttribLocation(program, name);
See also: https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/getAttribLocation
Method. The WebGLRenderingContext.getAttribLocation() method of the WebGL returns the location of an attribute variable in a given `web.gl.WebGLProgram`. `GLint gl.getAttribLocation(program, name);` See also: `https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/getAttribLocation`
(get-buffer-parameter this target pname)
Method.
The WebGLRenderingContext.getBufferParameter() method of the API returns information about the buffer.
any gl.getBufferParameter(target, pname);
See also: https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/getBufferParameter
Method. The WebGLRenderingContext.getBufferParameter() method of the API returns information about the buffer. `any gl.getBufferParameter(target, pname);` See also: `https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/getBufferParameter`
(get-context-attributes this)
Method.
The WebGLRenderingContext.getContextAttributes() method returns
WebGLContextAttributes object that contains the actual context
Might return js.null
, if the context is lost.
gl.getContextAttributes();
See also: https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/getContextAttributes
Method. The WebGLRenderingContext.getContextAttributes() method returns WebGLContextAttributes object that contains the actual context Might return `js.null`, if the context is lost. `gl.getContextAttributes();` See also: `https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/getContextAttributes`
(get-error this)
Method.
The WebGLRenderingContext.getError() method of the WebGL API error information.
GLenum gl.getError();
See also: https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/getError
Method. The WebGLRenderingContext.getError() method of the WebGL API error information. `GLenum gl.getError();` See also: `https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/getError`
(get-extension this name)
Method.
The WebGLRenderingContext.getExtension() method enables a WebGL
gl.getExtension(name);
See also: https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/getExtension
Method. The WebGLRenderingContext.getExtension() method enables a WebGL `gl.getExtension(name);` See also: `https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/getExtension`
(get-framebuffer-attachment-parameter this target attachment pname)
Method.
The WebGLRenderingContext.getFramebufferAttachmentParameter() of the WebGL API returns information about a framebuffer's attachment.
any gl.getFramebufferAttachmentParameter(target, attachment, pname);
See also: https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/getFramebufferAttachmentParameter
Method. The WebGLRenderingContext.getFramebufferAttachmentParameter() of the WebGL API returns information about a framebuffer's attachment. `any gl.getFramebufferAttachmentParameter(target, attachment, pname);` See also: `https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/getFramebufferAttachmentParameter`
(get-parameter this pname)
Method.
The WebGLRenderingContext.getParameter() method of the WebGL returns a value for the passed parameter name.
any gl.getParameter(pname);
See also: https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/getParameter
Method. The WebGLRenderingContext.getParameter() method of the WebGL returns a value for the passed parameter name. `any gl.getParameter(pname);` See also: `https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/getParameter`
(get-program-info-log this program)
Method.
The WebGLRenderingContext.getProgramInfoLog returns the information
for the specified web.gl.WebGLProgram
object. It contains errors
occurred during failed linking or validation of WebGLProgram
gl.getProgramInfoLog(program);
See also: https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/getProgramInfoLog
Method. The WebGLRenderingContext.getProgramInfoLog returns the information for the specified `web.gl.WebGLProgram` object. It contains errors occurred during failed linking or validation of WebGLProgram `gl.getProgramInfoLog(program);` See also: `https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/getProgramInfoLog`
(get-program-parameter this program pname)
Method.
The WebGLRenderingContext.getProgramParameter() method of the API returns information about the given program.
any gl.getProgramParameter(program, pname);
See also: https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/getProgramParameter
Method. The WebGLRenderingContext.getProgramParameter() method of the API returns information about the given program. `any gl.getProgramParameter(program, pname);` See also: `https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/getProgramParameter`
(get-renderbuffer-parameter this target pname)
Method.
The WebGLRenderingContext.getRenderbufferParameter() method of WebGL API returns information about the renderbuffer.
any gl.getRenderbufferParameter(target, pname);
See also: https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/getRenderbufferParameter
Method. The WebGLRenderingContext.getRenderbufferParameter() method of WebGL API returns information about the renderbuffer. `any gl.getRenderbufferParameter(target, pname);` See also: `https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/getRenderbufferParameter`
(get-shader-info-log this shader)
Method.
The WebGLRenderingContext.getShaderInfoLog returns the information
for the specified web.gl.WebGLShader
object. It contains warnings,
and compile information.
gl.getShaderInfoLog(shader);
See also: https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/getShaderInfoLog
Method. The WebGLRenderingContext.getShaderInfoLog returns the information for the specified `web.gl.WebGLShader` object. It contains warnings, and compile information. `gl.getShaderInfoLog(shader);` See also: `https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/getShaderInfoLog`
(get-shader-parameter this shader pname)
Method.
The WebGLRenderingContext.getShaderParameter() method of the API returns information about the given shader.
any gl.getShaderParameter(shader, pname);
See also: https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/getShaderParameter
Method. The WebGLRenderingContext.getShaderParameter() method of the API returns information about the given shader. `any gl.getShaderParameter(shader, pname);` See also: `https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/getShaderParameter`
(get-shader-precision-format this shader-type precision-type)
Method.
The WebGLRenderingContext.getShaderPrecisionFormat() method of
WebGL API returns a new web.gl.WebGLShaderPrecisionFormat
object
the range and precision for the specified shader numeric format.
WebGLShaderPrecisionFormat gl.getShaderPrecisionFormat(shaderType, precisionType);
See also: https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/getShaderPrecisionFormat
Method. The WebGLRenderingContext.getShaderPrecisionFormat() method of WebGL API returns a new `web.gl.WebGLShaderPrecisionFormat` object the range and precision for the specified shader numeric format. `WebGLShaderPrecisionFormat gl.getShaderPrecisionFormat(shaderType, precisionType);` See also: `https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/getShaderPrecisionFormat`
(get-shader-source this shader)
Method.
The WebGLRenderingContext.getShaderSource() method of the WebGL
returns the source code of a web.gl.WebGLShader
as a web.dom.DOMString
.
DOMString gl.getShaderSource(shader);
See also: https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/getShaderSource
Method. The WebGLRenderingContext.getShaderSource() method of the WebGL returns the source code of a `web.gl.WebGLShader` as a `web.dom.DOMString`. `DOMString gl.getShaderSource(shader);` See also: `https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/getShaderSource`
(get-supported-extensions this)
Method.
The WebGLRenderingContext.getSupportedExtensions() method returns list of all the supported WebGL extensions.
gl.getSupportedExtensions();
See also: https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/getSupportedExtensions
Method. The WebGLRenderingContext.getSupportedExtensions() method returns list of all the supported WebGL extensions. `gl.getSupportedExtensions();` See also: `https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/getSupportedExtensions`
(get-tex-parameter this target pname)
Method.
The WebGLRenderingContext.getTexParameter() method of the WebGL returns information about the given texture.
any gl.getTexParameter(target, pname);
See also: https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/getTexParameter
Method. The WebGLRenderingContext.getTexParameter() method of the WebGL returns information about the given texture. `any gl.getTexParameter(target, pname);` See also: `https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/getTexParameter`
(get-uniform this program location)
Method.
The WebGLRenderingContext.getUniform() method of the WebGL API the value of a uniform variable at a given location.
any gl.getUniform(program, location);
See also: https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/getUniform
Method. The WebGLRenderingContext.getUniform() method of the WebGL API the value of a uniform variable at a given location. `any gl.getUniform(program, location);` See also: `https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/getUniform`
(get-uniform-location this program name)
Method.
Part of the WebGL API, the web.gl.WebGLRenderingContext
method
returns the location of a specific uniform variable which is
of a given web.gl.WebGLProgram
.
WebGLUniformLocation = WebGLRenderingContext.getUniformLocation(program, name);
See also: https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/getUniformLocation
Method. Part of the WebGL API, the `web.gl.WebGLRenderingContext` method returns the location of a specific uniform variable which is of a given `web.gl.WebGLProgram`. `WebGLUniformLocation = WebGLRenderingContext.getUniformLocation(program, name);` See also: `https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/getUniformLocation`
(get-vertex-attrib this index pname)
Method.
The WebGLRenderingContext.getVertexAttrib() method of the WebGL returns information about a vertex attribute at a given position.
any gl.getVertexAttrib(index, pname);
See also: https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/getVertexAttrib
Method. The WebGLRenderingContext.getVertexAttrib() method of the WebGL returns information about a vertex attribute at a given position. `any gl.getVertexAttrib(index, pname);` See also: `https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/getVertexAttrib`
(get-vertex-attrib-offset this index pname)
Method.
The WebGLRenderingContext.getVertexAttribOffset() method of the API returns the address of a specified vertex attribute.
GLintptr gl.getVertexAttribOffset(index, pname);
See also: https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/getVertexAttribOffset
Method. The WebGLRenderingContext.getVertexAttribOffset() method of the API returns the address of a specified vertex attribute. `GLintptr gl.getVertexAttribOffset(index, pname);` See also: `https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/getVertexAttribOffset`
(hint this target mode)
Method.
The WebGLRenderingContext.hint() method of the WebGL API specifies for certain behaviors. The interpretation of these hints depend the implementation.
void gl.hint(target, mode);
See also: https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/hint
Method. The WebGLRenderingContext.hint() method of the WebGL API specifies for certain behaviors. The interpretation of these hints depend the implementation. `void gl.hint(target, mode);` See also: `https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/hint`
(is-buffer this buffer)
Method.
The WebGLRenderingContext.isBuffer() method of the WebGL API
true if the passed web.gl.WebGLBuffer
is valid and false otherwise.
GLboolean gl.isBuffer(buffer);
See also: https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/isBuffer
Method. The WebGLRenderingContext.isBuffer() method of the WebGL API true if the passed `web.gl.WebGLBuffer` is valid and false otherwise. `GLboolean gl.isBuffer(buffer);` See also: `https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/isBuffer`
(is-context-lost this)
Method.
The WebGLRenderingContext.isContextLost() method returns a js.Boolean
whether or not the WebGL context has been lost.
gl.isContextLost();
See also: https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/isContextLost
Method. The WebGLRenderingContext.isContextLost() method returns a `js.Boolean` whether or not the WebGL context has been lost. `gl.isContextLost();` See also: `https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/isContextLost`
(is-enabled this cap)
Method.
The WebGLRenderingContext.isEnabled() method of the WebGL API whether a specific WebGL capability is enabled or not for this
GLboolean gl.isEnabled(cap);
See also: https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/isEnabled
Method. The WebGLRenderingContext.isEnabled() method of the WebGL API whether a specific WebGL capability is enabled or not for this `GLboolean gl.isEnabled(cap);` See also: `https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/isEnabled`
(is-framebuffer this framebuffer)
Method.
The WebGLRenderingContext.isFramebuffer() method of the WebGL
returns true if the passed web.gl.WebGLFramebuffer
is valid
false otherwise.
GLboolean gl.isFramebuffer(framebuffer);
See also: https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/isFramebuffer
Method. The WebGLRenderingContext.isFramebuffer() method of the WebGL returns true if the passed `web.gl.WebGLFramebuffer` is valid false otherwise. `GLboolean gl.isFramebuffer(framebuffer);` See also: `https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/isFramebuffer`
(is-program this program)
Method.
The WebGLRenderingContext.isProgram() method of the WebGL API
true if the passed web.gl.WebGLProgram
is valid, false otherwise.
GLboolean gl.isProgram(program);
See also: https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/isProgram
Method. The WebGLRenderingContext.isProgram() method of the WebGL API true if the passed `web.gl.WebGLProgram` is valid, false otherwise. `GLboolean gl.isProgram(program);` See also: `https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/isProgram`
(is-renderbuffer this renderbuffer)
Method.
The WebGLRenderingContext.isRenderbuffer() method of the WebGL
returns true if the passed web.gl.WebGLRenderbuffer
is valid
false otherwise.
GLboolean gl.isRenderbuffer(renderbuffer);
See also: https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/isRenderbuffer
Method. The WebGLRenderingContext.isRenderbuffer() method of the WebGL returns true if the passed `web.gl.WebGLRenderbuffer` is valid false otherwise. `GLboolean gl.isRenderbuffer(renderbuffer);` See also: `https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/isRenderbuffer`
(is-shader this shader)
Method.
The WebGLRenderingContext.isShader() method of the WebGL API
true if the passed web.gl.WebGLShader
is valid, false otherwise.
GLboolean gl.isShader(shader);
See also: https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/isShader
Method. The WebGLRenderingContext.isShader() method of the WebGL API true if the passed `web.gl.WebGLShader` is valid, false otherwise. `GLboolean gl.isShader(shader);` See also: `https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/isShader`
(is-texture this texture)
Method.
The WebGLRenderingContext.isTexture() method of the WebGL API
true if the passed web.gl.WebGLTexture
is valid and false otherwise.
GLboolean gl.isTexture(texture);
See also: https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/isTexture
Method. The WebGLRenderingContext.isTexture() method of the WebGL API true if the passed `web.gl.WebGLTexture` is valid and false otherwise. `GLboolean gl.isTexture(texture);` See also: `https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/isTexture`
(line-width this width)
Method.
The WebGLRenderingContext.lineWidth() method of the WebGL API the line width of rasterized lines.
void gl.lineWidth(width);
See also: https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/lineWidth
Method. The WebGLRenderingContext.lineWidth() method of the WebGL API the line width of rasterized lines. `void gl.lineWidth(width);` See also: `https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/lineWidth`
(link-program this program)
Method.
The WebGLRenderingContext.linkProgram() method of the WebGL API
a given web.gl.WebGLProgram
to the attached vertex and fragment
void gl.linkProgram(program);
See also: https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/linkProgram
Method. The WebGLRenderingContext.linkProgram() method of the WebGL API a given `web.gl.WebGLProgram` to the attached vertex and fragment `void gl.linkProgram(program);` See also: `https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/linkProgram`
(pixel-storei this pname param)
Method.
The WebGLRenderingContext.pixelStorei() method of the WebGL API the pixel storage modes.
void gl.pixelStorei(pname, param);
See also: https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/pixelStorei
Method. The WebGLRenderingContext.pixelStorei() method of the WebGL API the pixel storage modes. `void gl.pixelStorei(pname, param);` See also: `https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/pixelStorei`
(polygon-offset this factor units)
Method.
The WebGLRenderingContext.polygonOffset() method of the WebGL specifies the scale factors and units to calculate depth values.
void gl.polygonOffset(factor, units);
See also: https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/polygonOffset
Method. The WebGLRenderingContext.polygonOffset() method of the WebGL specifies the scale factors and units to calculate depth values. `void gl.polygonOffset(factor, units);` See also: `https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/polygonOffset`
(read-pixels this & args)
Method.
The WebGLRenderingContext.readPixels() method of the WebGL API
a block of pixels from a specified rectangle of the current color
into an web.typed.ArrayBufferView
object.
`// WebGL1: void gl.readPixels(x, y, width, height, format, type, pixels);
// WebGL2: void gl.readPixels(x, y, width, height, format, type, GLintptr offset); void gl.readPixels(x, y, width, height, format, type, ArrayBufferView pixels, GLuint dstOffset);`
See also: https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/readPixels
Method. The WebGLRenderingContext.readPixels() method of the WebGL API a block of pixels from a specified rectangle of the current color into an `web.typed.ArrayBufferView` object. `// WebGL1: void gl.readPixels(x, y, width, height, format, type, pixels); // WebGL2: void gl.readPixels(x, y, width, height, format, type, GLintptr offset); void gl.readPixels(x, y, width, height, format, type, ArrayBufferView pixels, GLuint dstOffset);` See also: `https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/readPixels`
(renderbuffer-storage this target internal-format width height)
Method.
The WebGLRenderingContext.renderbufferStorage() method of the API creates and initializes a renderbuffer object's data store.
void gl.renderbufferStorage(target, internalFormat, width, height);
See also: https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/renderbufferStorage
Method. The WebGLRenderingContext.renderbufferStorage() method of the API creates and initializes a renderbuffer object's data store. `void gl.renderbufferStorage(target, internalFormat, width, height);` See also: `https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/renderbufferStorage`
(sample-coverage this value invert)
Method.
The WebGLRenderingContext.sampleCoverage() method of the WebGL specifies multi-sample coverage parameters for anti-aliasing
void gl.sampleCoverage(value, invert);
See also: https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/sampleCoverage
Method. The WebGLRenderingContext.sampleCoverage() method of the WebGL specifies multi-sample coverage parameters for anti-aliasing `void gl.sampleCoverage(value, invert);` See also: `https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/sampleCoverage`
(scissor this x y width height)
Method.
The WebGLRenderingContext.scissor() method of the WebGL API sets scissor box, which limits the drawing to a specified rectangle.
void gl.scissor(x, y, width, height);
See also: https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/scissor
Method. The WebGLRenderingContext.scissor() method of the WebGL API sets scissor box, which limits the drawing to a specified rectangle. `void gl.scissor(x, y, width, height);` See also: `https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/scissor`
(shader-source this shader source)
Method.
The WebGLRenderingContext.shaderSource() method of the WebGL
sets the source code of a web.gl.WebGLShader
.
void gl.shaderSource(shader, source);
See also: https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/shaderSource
Method. The WebGLRenderingContext.shaderSource() method of the WebGL sets the source code of a `web.gl.WebGLShader`. `void gl.shaderSource(shader, source);` See also: `https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/shaderSource`
(stencil-func this func ref mask)
Method.
The WebGLRenderingContext.stencilFunc() method of the WebGL API the front and back function and reference value for stencil testing.
void gl.stencilFunc(func, ref, mask);
See also: https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/stencilFunc
Method. The WebGLRenderingContext.stencilFunc() method of the WebGL API the front and back function and reference value for stencil testing. `void gl.stencilFunc(func, ref, mask);` See also: `https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/stencilFunc`
(stencil-func-separate this face func ref mask)
Method.
The WebGLRenderingContext.stencilFuncSeparate() method of the API sets the front and/or back function and reference value for testing.
void gl.stencilFuncSeparate(face, func, ref, mask);
See also: https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/stencilFuncSeparate
Method. The WebGLRenderingContext.stencilFuncSeparate() method of the API sets the front and/or back function and reference value for testing. `void gl.stencilFuncSeparate(face, func, ref, mask);` See also: `https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/stencilFuncSeparate`
(stencil-mask this mask)
Method.
The WebGLRenderingContext.stencilMask() method of the WebGL API enabling and disabling of both the front and back writing of bits in the stencil planes.
void gl.stencilMask(mask);
See also: https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/stencilMask
Method. The WebGLRenderingContext.stencilMask() method of the WebGL API enabling and disabling of both the front and back writing of bits in the stencil planes. `void gl.stencilMask(mask);` See also: `https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/stencilMask`
(stencil-mask-separate this face mask)
Method.
The WebGLRenderingContext.stencilMaskSeparate() method of the API controls enabling and disabling of front and/or back writing individual bits in the stencil planes.
void gl.stencilMaskSeparate(face, mask);
See also: https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/stencilMaskSeparate
Method. The WebGLRenderingContext.stencilMaskSeparate() method of the API controls enabling and disabling of front and/or back writing individual bits in the stencil planes. `void gl.stencilMaskSeparate(face, mask);` See also: `https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/stencilMaskSeparate`
(stencil-op this fail zfail zpass)
Method.
The WebGLRenderingContext.stencilOp() method of the WebGL API both the front and back-facing stencil test actions.
void gl.stencilOp(fail, zfail, zpass);
See also: https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/stencilOp
Method. The WebGLRenderingContext.stencilOp() method of the WebGL API both the front and back-facing stencil test actions. `void gl.stencilOp(fail, zfail, zpass);` See also: `https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/stencilOp`
(stencil-op-separate this face fail zfail zpass)
Method.
The WebGLRenderingContext.stencilOpSeparate() method of the WebGL sets the front and/or back-facing stencil test actions.
void gl.stencilOpSeparate(face, fail, zfail, zpass);
See also: https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/stencilOpSeparate
Method. The WebGLRenderingContext.stencilOpSeparate() method of the WebGL sets the front and/or back-facing stencil test actions. `void gl.stencilOpSeparate(face, fail, zfail, zpass);` See also: `https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/stencilOpSeparate`
(tex-image2d this & args)
Method.
The WebGLRenderingContext.texImage2D() method of the WebGL API a two-dimensional texture image.
`// WebGL1: void gl.texImage2D(target, level, internalformat, width, height, border, format, type, ArrayBufferView? pixels); void gl.texImage2D(target, level, internalformat, format, type, ImageData? pixels); void gl.texImage2D(target, level, internalformat, format, type, HTMLImageElement? pixels); void gl.texImage2D(target, level, internalformat, format, type, HTMLCanvasElement? pixels); void gl.texImage2D(target, level, internalformat, format, type, HTMLVideoElement? pixels); void gl.texImage2D(target, level, internalformat, format, type, ImageBitmap? pixels);
// WebGL2: void gl.texImage2D(target, level, internalformat, width, height, border, format, type, GLintptr offset); void gl.texImage2D(target, level, internalformat, width, height, border, format, type, HTMLCanvasElement source); void gl.texImage2D(target, level, internalformat, width, height, border, format, type, HTMLImageElement source); void gl.texImage2D(target, level, internalformat, width, height, border, format, type, HTMLVideoElement source); void gl.texImage2D(target, level, internalformat, width, height, border, format, type, ImageBitmap source); void gl.texImage2D(target, level, internalformat, width, height, border, format, type, ImageData source); void gl.texImage2D(target, level, internalformat, width, height, border, format, type, ArrayBufferView srcData, srcOffset);`
See also: https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/texImage2D
Method. The WebGLRenderingContext.texImage2D() method of the WebGL API a two-dimensional texture image. `// WebGL1: void gl.texImage2D(target, level, internalformat, width, height, border, format, type, ArrayBufferView? pixels); void gl.texImage2D(target, level, internalformat, format, type, ImageData? pixels); void gl.texImage2D(target, level, internalformat, format, type, HTMLImageElement? pixels); void gl.texImage2D(target, level, internalformat, format, type, HTMLCanvasElement? pixels); void gl.texImage2D(target, level, internalformat, format, type, HTMLVideoElement? pixels); void gl.texImage2D(target, level, internalformat, format, type, ImageBitmap? pixels); // WebGL2: void gl.texImage2D(target, level, internalformat, width, height, border, format, type, GLintptr offset); void gl.texImage2D(target, level, internalformat, width, height, border, format, type, HTMLCanvasElement source); void gl.texImage2D(target, level, internalformat, width, height, border, format, type, HTMLImageElement source); void gl.texImage2D(target, level, internalformat, width, height, border, format, type, HTMLVideoElement source); void gl.texImage2D(target, level, internalformat, width, height, border, format, type, ImageBitmap source); void gl.texImage2D(target, level, internalformat, width, height, border, format, type, ImageData source); void gl.texImage2D(target, level, internalformat, width, height, border, format, type, ArrayBufferView srcData, srcOffset);` See also: `https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/texImage2D`
(tex-parameter this & args)
Method.
The WebGLRenderingContext.texParameterfi methods of the WebGL set texture parameters.
void gl.texParameterf(GLenum target, GLenum pname, GLfloat param); void gl.texParameteri(GLenum target, GLenum pname, GLint param);
See also: https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/texParameter
Method. The WebGLRenderingContext.texParameter[fi]() methods of the WebGL set texture parameters. `void gl.texParameterf(GLenum target, GLenum pname, GLfloat param); void gl.texParameteri(GLenum target, GLenum pname, GLint param);` See also: `https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/texParameter`
(tex-sub-image2d this & args)
Method.
The WebGLRenderingContext.texSubImage2D() method of the WebGL specifies a sub-rectangle of the current texture.
`// WebGL 1: void gl.texSubImage2D(target, level, xoffset, yoffset, width, height, format, type, ArrayBufferView? pixels); void gl.texSubImage2D(target, level, xoffset, yoffset, format, type, ImageData? pixels); void gl.texSubImage2D(target, level, xoffset, yoffset, format, type, HTMLImageElement? pixels); void gl.texSubImage2D(target, level, xoffset, yoffset, format, type, HTMLCanvasElement? pixels); void gl.texSubImage2D(target, level, xoffset, yoffset, format, type, HTMLVideoElement? pixels); void gl.texSubImage2D(target, level, xoffset, yoffset, format, type, ImageBitmap? pixels);
// WebGL 2: void gl.texSubImage2D(target, level, xoffset, yoffset, format, type, GLintptr offset); void gl.texSubImage2D(target, level, xoffset, yoffset, width, height, format, type, HTMLCanvasElement source); void gl.texSubImage2D(target, level, xoffset, yoffset, width, height, format, type, HTMLImageElement source); void gl.texSubImage2D(target, level, xoffset, yoffset, width, height, format, type, HTMLVideoElement source); void gl.texSubImage2D(target, level, xoffset, yoffset, width, height, format, type, ImageBitmap source); void gl.texSubImage2D(target, level, xoffset, yoffset, width, height, format, type, ImageData source); void gl.texSubImage2D(target, level, xoffset, yoffset, width, height, format, type, ArrayBufferView srcData, srcOffset);`
See also: https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/texSubImage2D
Method. The WebGLRenderingContext.texSubImage2D() method of the WebGL specifies a sub-rectangle of the current texture. `// WebGL 1: void gl.texSubImage2D(target, level, xoffset, yoffset, width, height, format, type, ArrayBufferView? pixels); void gl.texSubImage2D(target, level, xoffset, yoffset, format, type, ImageData? pixels); void gl.texSubImage2D(target, level, xoffset, yoffset, format, type, HTMLImageElement? pixels); void gl.texSubImage2D(target, level, xoffset, yoffset, format, type, HTMLCanvasElement? pixels); void gl.texSubImage2D(target, level, xoffset, yoffset, format, type, HTMLVideoElement? pixels); void gl.texSubImage2D(target, level, xoffset, yoffset, format, type, ImageBitmap? pixels); // WebGL 2: void gl.texSubImage2D(target, level, xoffset, yoffset, format, type, GLintptr offset); void gl.texSubImage2D(target, level, xoffset, yoffset, width, height, format, type, HTMLCanvasElement source); void gl.texSubImage2D(target, level, xoffset, yoffset, width, height, format, type, HTMLImageElement source); void gl.texSubImage2D(target, level, xoffset, yoffset, width, height, format, type, HTMLVideoElement source); void gl.texSubImage2D(target, level, xoffset, yoffset, width, height, format, type, ImageBitmap source); void gl.texSubImage2D(target, level, xoffset, yoffset, width, height, format, type, ImageData source); void gl.texSubImage2D(target, level, xoffset, yoffset, width, height, format, type, ArrayBufferView srcData, srcOffset);` See also: `https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/texSubImage2D`
(uniform this & args)
Method.
The WebGLRenderingContext.uniform[1234][fi][v]() methods of the API specify values of uniform variables.
`void gl.uniform1f(location, v0); void gl.uniform1fv(location, value); void gl.uniform1i(location, v0); void gl.uniform1iv(location, value);
void gl.uniform2f(location, v0, v1); void gl.uniform2fv(location, value); void gl.uniform2i(location, v0, v1); void gl.uniform2iv(location, value);
void gl.uniform3f(location, v0, v1, v2); void gl.uniform3fv(location, value); void gl.uniform3i(location, v0, v1, v2); void gl.uniform3iv(location, value);
void gl.uniform4f(location, v0, v1, v2, v3); void gl.uniform4fv(location, value); void gl.uniform4i(location, v0, v1, v2, v3); void gl.uniform4iv(location, value);`
See also: https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/uniform
Method. The WebGLRenderingContext.uniform[1234][fi][v]() methods of the API specify values of uniform variables. `void gl.uniform1f(location, v0); void gl.uniform1fv(location, value); void gl.uniform1i(location, v0); void gl.uniform1iv(location, value); void gl.uniform2f(location, v0, v1); void gl.uniform2fv(location, value); void gl.uniform2i(location, v0, v1); void gl.uniform2iv(location, value); void gl.uniform3f(location, v0, v1, v2); void gl.uniform3fv(location, value); void gl.uniform3i(location, v0, v1, v2); void gl.uniform3iv(location, value); void gl.uniform4f(location, v0, v1, v2, v3); void gl.uniform4fv(location, value); void gl.uniform4i(location, v0, v1, v2, v3); void gl.uniform4iv(location, value);` See also: `https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/uniform`
(uniform-matrix this & args)
Method.
The WebGLRenderingContext.uniformMatrix[234]fv() methods of the API specify matrix values for uniform variables.
WebGLRenderingContext.uniformMatrix2fv(location, transpose, value); WebGLRenderingContext.uniformMatrix3fv(location, transpose, value); WebGLRenderingContext.uniformMatrix4fv(location, transpose, value);
See also: https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/uniformMatrix
Method. The WebGLRenderingContext.uniformMatrix[234]fv() methods of the API specify matrix values for uniform variables. `WebGLRenderingContext.uniformMatrix2fv(location, transpose, value); WebGLRenderingContext.uniformMatrix3fv(location, transpose, value); WebGLRenderingContext.uniformMatrix4fv(location, transpose, value);` See also: `https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/uniformMatrix`
(use-program this program)
Method.
The WebGLRenderingContext.useProgram() method of the WebGL API
the specified web.gl.WebGLProgram
as part of the current rendering
void gl.useProgram(program);
See also: https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/useProgram
Method. The WebGLRenderingContext.useProgram() method of the WebGL API the specified `web.gl.WebGLProgram` as part of the current rendering `void gl.useProgram(program);` See also: `https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/useProgram`
(validate-program this program)
Method.
The WebGLRenderingContext.validateProgram() method of the WebGL
validates a web.gl.WebGLProgram
. It checks if it is successfully
and if it can be used in the current WebGL state.
void gl.validateProgram(program);
See also: https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/validateProgram
Method. The WebGLRenderingContext.validateProgram() method of the WebGL validates a `web.gl.WebGLProgram`. It checks if it is successfully and if it can be used in the current WebGL state. `void gl.validateProgram(program);` See also: `https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/validateProgram`
(vertex-attrib this & args)
Method.
The WebGLRenderingContext.vertexAttrib[1234]fv methods of WebGL API specify constant values for generic vertex attributes.
`void gl.vertexAttrib1f(index, v0); void gl.vertexAttrib2f(index, v0, v1); void gl.vertexAttrib3f(index, v0, v1, v2); void gl.vertexAttrib4f(index, v0, v1, v2, v3);
void gl.vertexAttrib1fv(index, value); void gl.vertexAttrib2fv(index, value); void gl.vertexAttrib3fv(index, value); void gl.vertexAttrib4fv(index, value);`
See also: https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/vertexAttrib
Method. The WebGLRenderingContext.vertexAttrib[1234]f[v]() methods of WebGL API specify constant values for generic vertex attributes. `void gl.vertexAttrib1f(index, v0); void gl.vertexAttrib2f(index, v0, v1); void gl.vertexAttrib3f(index, v0, v1, v2); void gl.vertexAttrib4f(index, v0, v1, v2, v3); void gl.vertexAttrib1fv(index, value); void gl.vertexAttrib2fv(index, value); void gl.vertexAttrib3fv(index, value); void gl.vertexAttrib4fv(index, value);` See also: `https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/vertexAttrib`
(vertex-attrib-pointer this index size type normalized stride offset)
Method.
The WebGLRenderingContext.vertexAttribPointer() method of the API binds the buffer currently bound to gl.ARRAY_BUFFER to a vertex attribute of the current vertex buffer object and specifies layout.
void gl.vertexAttribPointer(index, size, type, normalized, stride, offset);
See also: https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/vertexAttribPointer
Method. The WebGLRenderingContext.vertexAttribPointer() method of the API binds the buffer currently bound to gl.ARRAY_BUFFER to a vertex attribute of the current vertex buffer object and specifies layout. `void gl.vertexAttribPointer(index, size, type, normalized, stride, offset);` See also: `https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/vertexAttribPointer`
(viewport this x y width height)
Method.
The WebGLRenderingContext.viewport() method of the WebGL API the viewport, which specifies the affine transformation of x y from normalized device coordinates to window coordinates.
void gl.viewport(x, y, width, height);
See also: https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/viewport
Method. The WebGLRenderingContext.viewport() method of the WebGL API the viewport, which specifies the affine transformation of x y from normalized device coordinates to window coordinates. `void gl.viewport(x, y, width, height);` See also: `https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/viewport`
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close