clear method
The WebGLRenderingContext.clear()
method of the
WebGL API
clears buffers to preset values.
The preset values can be set by WebGLRenderingContext.clearColor, WebGLRenderingContext.clearDepth or WebGLRenderingContext.clearStencil.
The scissor box, dithering, and buffer writemasks can affect the clear()
method.
Implementation
external void clear(GLbitfield mask);