glClearColor
[New
- Windows 95, OEM Service Release 2]
The glClearColor
function specifies clear values for the color buffers.
void glClearColor(
GLclampf red, |
|
GLclampf green, |
|
GLclampf blue, |
|
GLclampf alpha |
|
); |
|
Parameters
red,
green, blue, alpha
The red,
green, blue, and alpha values used when the color buffers are cleared. The
default values are all zero.
Remarks
The glClearColor
function specifies the red, green, blue, and alpha values used by glClear
The following
functions retrieve information related to the glClearColor function:
glGet with
argument GL_ACCUM_CLEAR_VALUE
glGet with
argument GL_COLOR_CLEAR_VALUE
Error Codes
The following
are the error codes generated and their conditions.
Error
Code |
Condition |
GL_INVALID_OPERATION
|
glClearColor was called between a call to glBegin and the
corresponding call to glEnd. |
See Also