Liking cljdoc? Tell your friends :D
ClojureScript only.

web.gl.WebGLRenderingContext

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.
raw docstring

active-texturecljs

(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`
sourceraw docstring

attach-shadercljs

(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`
sourceraw docstring

bind-attrib-locationcljs

(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`
sourceraw docstring

bind-buffercljs

(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`
sourceraw docstring

bind-framebuffercljs

(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`
sourceraw docstring

bind-renderbuffercljs

(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`
sourceraw docstring

bind-texturecljs

(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`
sourceraw docstring

blend-colorcljs

(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`
sourceraw docstring

blend-equationcljs

(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`
sourceraw docstring

blend-equation-separatecljs

(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`
sourceraw docstring

blend-funccljs

(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`
sourceraw docstring

blend-func-separatecljs

(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`
sourceraw docstring

buffer-datacljs

(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`
sourceraw docstring

buffer-sub-datacljs

(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`
sourceraw docstring

canvascljs

(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`
sourceraw docstring

check-framebuffer-statuscljs

(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`
sourceraw docstring

clearcljs

(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`
sourceraw docstring

clear-colorcljs

(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`
sourceraw docstring

clear-depthcljs

(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`
sourceraw docstring

clear-stencilcljs

(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`
sourceraw docstring

color-maskcljs

(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`
sourceraw docstring

commitcljs

(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`
sourceraw docstring

compile-shadercljs

(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`
sourceraw docstring

compressed-tex-imagecljs

(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`
sourceraw docstring

compressed-tex-sub-image2dcljs

(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`
sourceraw docstring

copy-tex-image2dcljs

(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`
sourceraw docstring

copy-tex-sub-image2dcljs

(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`
sourceraw docstring

create-buffercljs

(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`
sourceraw docstring

create-framebuffercljs

(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`
sourceraw docstring

create-programcljs

(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`
sourceraw docstring

create-renderbuffercljs

(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`
sourceraw docstring

create-shadercljs

(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`
sourceraw docstring

create-texturecljs

(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`
sourceraw docstring

cull-facecljs

(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`
sourceraw docstring

delete-buffercljs

(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`
sourceraw docstring

delete-framebuffercljs

(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`
sourceraw docstring

delete-programcljs

(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`
sourceraw docstring

delete-renderbuffercljs

(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`
sourceraw docstring

delete-shadercljs

(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`
sourceraw docstring

delete-texturecljs

(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`
sourceraw docstring

depth-funccljs

(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`
sourceraw docstring

depth-maskcljs

(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`
sourceraw docstring

depth-rangecljs

(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`
sourceraw docstring

detach-shadercljs

(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`
sourceraw docstring

disablecljs

(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`
sourceraw docstring

disable-vertex-attrib-arraycljs

(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`
sourceraw docstring

draw-arrayscljs

(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`
sourceraw docstring

draw-elementscljs

(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`
sourceraw docstring

drawing-buffer-heightcljs

(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`
sourceraw docstring

drawing-buffer-widthcljs

(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`
sourceraw docstring

enablecljs

(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`
sourceraw docstring

enable-vertex-attrib-arraycljs

(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`
sourceraw docstring

finishcljs

(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`
sourceraw docstring

flushcljs

(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`
sourceraw docstring

framebuffer-renderbuffercljs

(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`
sourceraw docstring

framebuffer-texture2dcljs

(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`
sourceraw docstring

front-facecljs

(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`
sourceraw docstring

generate-mipmapcljs

(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`
sourceraw docstring

get-active-attribcljs

(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`
sourceraw docstring

get-active-uniformcljs

(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`
sourceraw docstring

get-attached-shaderscljs

(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`
sourceraw docstring

get-attrib-locationcljs

(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`
sourceraw docstring

get-buffer-parametercljs

(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`
sourceraw docstring

get-context-attributescljs

(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`
sourceraw docstring

get-errorcljs

(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`
sourceraw docstring

get-extensioncljs

(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`
sourceraw docstring

get-framebuffer-attachment-parametercljs

(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`
sourceraw docstring

get-parametercljs

(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`
sourceraw docstring

get-program-info-logcljs

(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`
sourceraw docstring

get-program-parametercljs

(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`
sourceraw docstring

get-renderbuffer-parametercljs

(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`
sourceraw docstring

get-shader-info-logcljs

(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`
sourceraw docstring

get-shader-parametercljs

(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`
sourceraw docstring

get-shader-precision-formatcljs

(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`
sourceraw docstring

get-shader-sourcecljs

(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.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.DOMString`.

`DOMString gl.getShaderSource(shader);`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/getShaderSource`
sourceraw docstring

get-supported-extensionscljs

(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`
sourceraw docstring

get-tex-parametercljs

(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`
sourceraw docstring

get-uniformcljs

(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`
sourceraw docstring

get-uniform-locationcljs

(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`
sourceraw docstring

get-vertex-attribcljs

(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`
sourceraw docstring

get-vertex-attrib-offsetcljs

(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`
sourceraw docstring

hintcljs

(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`
sourceraw docstring

is-buffercljs

(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`
sourceraw docstring

is-context-lostcljs

(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`
sourceraw docstring

is-enabledcljs

(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`
sourceraw docstring

is-framebuffercljs

(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`
sourceraw docstring

is-programcljs

(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`
sourceraw docstring

is-renderbuffercljs

(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`
sourceraw docstring

is-shadercljs

(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`
sourceraw docstring

is-texturecljs

(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`
sourceraw docstring

line-widthcljs

(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`
sourceraw docstring

(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`
sourceraw docstring

pixel-storeicljs

(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`
sourceraw docstring

polygon-offsetcljs

(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`
sourceraw docstring

read-pixelscljs

(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`
sourceraw docstring

renderbuffer-storagecljs

(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`
sourceraw docstring

sample-coveragecljs

(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`
sourceraw docstring

scissorcljs

(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`
sourceraw docstring

shader-sourcecljs

(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`
sourceraw docstring

stencil-funccljs

(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`
sourceraw docstring

stencil-func-separatecljs

(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`
sourceraw docstring

stencil-maskcljs

(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`
sourceraw docstring

stencil-mask-separatecljs

(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`
sourceraw docstring

stencil-opcljs

(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`
sourceraw docstring

stencil-op-separatecljs

(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`
sourceraw docstring

tex-image2dcljs

(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`
sourceraw docstring

tex-parametercljs

(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`
sourceraw docstring

tex-sub-image2dcljs

(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`
sourceraw docstring

uniformcljs

(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`
sourceraw docstring

uniform-matrixcljs

(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`
sourceraw docstring

use-programcljs

(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`
sourceraw docstring

validate-programcljs

(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`
sourceraw docstring

vertex-attribcljs

(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`
sourceraw docstring

vertex-attrib-pointercljs

(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`
sourceraw docstring

viewportcljs

(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`
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close