STATIC SUB Clear ( Mask AS Integer )
Gl.Clear sets the bitplane area of the window to values previously selected by Gl.ClearColor, Gl.ClearIndex, Gl.ClearDepth, Gl.ClearStencil, and Gl.ClearAccum. Multiple color buffers can be cleared simultaneously by selecting more than one buffer at a time using Gl.DrawBuffer.
The pixel ownership test, the scissor test, dithering, and the buffer writemasks affect the operation of
Gl.Clear takes a single argument that is the bitwise OR of several values indicating which buffer is to be cleared. The values are as follows:
![]() | If a buffer is not present, then a Gl.Clear directed at that buffer has no effect. |
Gl.GetAccumClearValue
Gl.GetDepthClearValue
Gl.GetIndexClearValue
Gl.GetColorClearValue
Gl.GetStencilClearValue