Specifies clear values for the color buffers.
OpenGL C bindings library: libGL.a
void glClearColor(GLclampf Red, GLclampf Green, GLclampf Blue, GLclampf Alpha)
|Red||Specifies the red value used when the color buffer is cleared. The default value is 0 (zero).|
|Green||Specifies the green value used when the color buffer is cleared. The default value is 0.|
|Blue||Specifies the blue value used when the color buffer is cleared. The default value is 0.|
|Alpha||Specifies the alpha value used when the color buffer is cleared. The default value is 0.|
The glClearColor subroutine specifies the red, green, blue, and alpha values used by the glClear subroutine to clear the color buffers. Values specified by glClearColor are clamped to the range [0,1].
|GL_INVALID_OPERATION||The glClearColor subroutine is called between a call to glBegin and the corresponding call to glEnd.|
Associated gets for the glClearColor subroutine are as follows. (See the glGet subroutine for more information.)
glGet with argument GL_COLOR_CLEAR_VALUE.
|/usr/include/GL/gl.h||Contains C language constants, variable type definitions, and ANSI function prototypes for OpenGL.|
The glBegin or glEnd subroutine, glClear subroutine.