Name
gl.ClearColor -- specify clear values for the color buffers
Synopsis
gl.ClearColor(red, green, blue, alpha)
Function
gl.ClearColor() specifies the red, green, blue, and alpha values used by gl.Clear() to clear the color buffers. Values specified by gl.ClearColor() are clamped to the range 0 through 1.

Please consult an OpenGL reference manual for more information.

Inputs
red
specify the red value used when the color buffers are cleared; the initial value is 0
green
specify the green value used when the color buffers are cleared; the initial value is 0
blue
specify the blue value used when the color buffers are cleared; the initial value is 0
alpha
specify the alpha value used when the color buffers are cleared; the initial value is 0
Errors
#GL_INVALID_OPERATION is generated if gl.ClearColor() is executed between the execution of gl.Begin() and the corresponding execution of gl.End()

Associated gets
gl.Get() with argument #GL_COLOR_CLEAR_VALUE


Show TOC