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/disable below:

WebGLRenderingContext: disable() method - Web APIs

WebGLRenderingContext: disable() method

Baseline Widely available

Note: This feature is available in Web Workers.

The WebGLRenderingContext.disable() method of the WebGL API disables specific WebGL capabilities for this context.

Syntax Parameters
capability

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

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

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

None (undefined).

Examples

To check if a capability is disabled, use the WebGLRenderingContext.isEnabled() method:

gl.isEnabled(gl.DITHER);
// false
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