Specifies clear values for the color buffers.
OpenGL C bindings library: libGL.a
void glClearColor(GLclampf Red, GLclampf Green, GLclampf Blue, GLclampf Alpha)
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.