Disable

The Disable function disables various capabilities.

Disable( cap);

Arguments                                cap

A symbolic constant indicating an OpenGL capability.

The values cap can take are listed below.

 GL_CULL_FACE

If enabled, cull polygons based on their winding in window coordinates. See CullFace.

GL_DEPTH_TEST

If enabled, do depth comparisons and update the depth buffer.

GL_DITHER

If enabled, dither color components or indexes before they are written to the color buffer.

GL_LIGHTi

If enabled, include light i in the evaluation of the lighting equation. See Light.

GL_LIGHTING

If enabled, use the current lighting parameters to compute the vertex color or index. If disabled, associate the current color or index with each vertex. See Material, and Light.

GL_LINE_SMOOTH

If enabled, draw lines with correct filtering. If disabled, draw aliased lines. See LineWidth.

GL_NORMALIZE

If enabled, normal vectors specified with Normal are scaled to unit length after transformation. See Normal.

GL_POINT_SMOOTH

If enabled, draw points with proper filtering. If disabled, draw aliased points. See PointSize.

GL_POLYGON_SMOOTH

If enabled, draw polygons with proper filtering. If disabled, draw aliased polygons.

Note:  Do not call Disable between a call to Begin and the corresponding call to End.

See Also

Enable

Begin

CullFace

End

LineWidth

Normal

PointSize