Export (0) Print
Expand All
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

enable method

Turns on specific WebGL capabilities for this context.

IE11

 

Syntax

WebGLRenderingContext.enable(cap);

Parameters

cap [in]

Type: Number

One of the following:

ValueMeaning
gl.BLEND

Blend computed fragment color values with color buffer values.

gl.DEPTH_TEST

Enable updates of the depth buffer.

gl.CULL_FACE

Let polygons be culled. See cullFace

gl.POLYGON_OFFSET_FILL

Add an offset to the depth values of a polygon's fragments.

gl.SCISSOR_TEST

Abandon fragments outside a scissor rectangle.

 

Return value

This method does not return a value.

Remarks

WebGL errorDescription
gl.INVALID_ENUMIf cap is not from the listed values.

 

See also

WebGLRenderingContext

 

 

Show:
© 2015 Microsoft