Enable

Definition
The enable method enables various capabilities.

Syntax

 * gl.enable(cap)

Parameters

 * cap: symbolic constant indicating a GL capability, the supported values are gl.BLEND, gl.CULL_FACE, gl.DEPTH_TEST, gl.DITHER, gl.POLYGON_OFFSET_FILL, gl.SAMPLE_ALPHA_TO_COVERAGE, gl.SAMPLE_COVERAGE, gl.SCISSOR_TEST and gl.STENCIL_TEST, all capabilities are disabled by default

Examples

 * // Enables depth testing
 * gl.enable(gl.DEPTH_TEST);