Name

C Specification

Parameters

mask

Bitwise OR of masks that indicate the buffers to be cleared.
The three masks are
GL_COLOR_BUFFER_BIT,
GL_DEPTH_BUFFER_BIT, and
GL_STENCIL_BUFFER_BIT.

Description

glClear sets the bitplane area of the window to values previously selected
by glClearColor, glClearDepth, and
glClearStencil.
Multiple color buffers can be cleared simultaneously by selecting
more than one buffer at a time using glDrawBuffer.