FANDOM


DefinitionEdit

The COLOR_BUFFER_BIT constant indicates the buffers currently enabled for color writing.

SyntaxEdit

gl.COLOR_BUFFER_BIT

ExamplesEdit

// Clears the color and depth buffers
gl.clear(gl.COLOR_BUFFER_BIT | gl.DEPTH_BUFFER_BIT);

See alsoEdit

Community content is available under CC-BY-SA unless otherwise noted.