Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Expand Minimize

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