glClearAccum
The glClearAccum function specifies the clear values for the accumulation buffer.
void glClearAccum(
GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha);
Parameters
- red, green, blue, alpha
The red, green, blue, and alpha values used when the accumulation buffer is cleared. The default values are all zero.
Remarks
The glClearAccum function specifies the red, green, blue, and alpha values used by glClear to clear the accumulation buffer.
Values specified by glClearAccum are clamped to the range [ 1,1].
The following function retrieves information related to glClearAccum:
glGet with argument GL_ACCUM_CLEAR_VALUE
Error Codes
The following is the error code generated and its condition.
Error code | Condition |
---|---|
GL_INVALID_OPERATION | glClearAccum was called between a call to glBegin and the corresponding call to glEnd |
Requirements
** Windows NT/2000:** Requires Windows NT 3.5 or later.
** Windows 95/98:** Requires Windows 95 or later. Available as a redistributable for Windows 95.
** Header:** Declared in Gl.h.
** Library:** Use Opengl32.lib.