A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/isEnabled below:

WebGLRenderingContext: isEnabled() method - Web APIs

WebGLRenderingContext: isEnabled() method

Baseline Widely available

Note: This feature is available in Web Workers.

The WebGLRenderingContext.isEnabled() method of the WebGL API tests whether a specific WebGL capability is enabled or not for this context.

By default, all capabilities except gl.DITHER are disabled.

Syntax Parameters
cap

A GLenum specifying which WebGL capability to test. Possible values:

When using a WebGL 2 context, the following values are available additionally:

Constant Description gl.RASTERIZER_DISCARD Primitives are discarded immediately before the rasterization stage, but after the optional transform feedback stage. gl.clear() commands are ignored.
Return value

A GLboolean indicating if the capability cap is enabled (true), or not (false).

Examples
gl.isEnabled(gl.STENCIL_TEST);
// false

To activate or deactivate a specific capability, use the WebGLRenderingContext.enable() and WebGLRenderingContext.disable() methods:

gl.enable(gl.STENCIL_TEST);
gl.disable(gl.STENCIL_TEST);
Specifications Browser compatibility See also

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4