The glClearAccum function clears values for the accumulation buffer.
void glClearAccum(
GLfloat red,
GLfloat green,
GLfloat blue,
GLfloat alpha
);
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
The following are the error codes generated and their conditions.
Error Code | Condition |
---|---|
GL_INVALID_OPERATION | glClearAccum was called between a call to glBegin and the corresponding call to glEnd |
Windows NT: Use version 3.5 and later.
Windows: Use Windows 95 and later.
Windows CE: Unsupported.
Header: Declared in gl.h.
Import Library: Link with opengl32.lib.
glBegin, glClear, glEnd, glGet