glClearAccum function

The glClearAccum function specifies the clear values for the accumulation buffer.

Syntax

void WINAPI glClearAccum(
   GLfloat red,
   GLfloat green,
   GLfloat blue,
   GLfloat alpha
);

Parameters

red

The red value used when the accumulation buffer is cleared. The default value is zero.

green

The green value used when the accumulation buffer is cleared. The default value is zero.

blue

The blue value used when the accumulation buffer is cleared. The default value is zero.

alpha

The alpha value used when the accumulation buffer is cleared. The default value is zero.

Return value

This function does not return a value.

Error codes

The following error code can be retrieved by the glGetError function.

Name Meaning
GL_INVALID_OPERATION
The function was called between a call to glBegin and the corresponding call to glEnd.

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

Requirements

Requirement Value
Minimum supported client
Windows 2000 Professional [desktop apps only]
Minimum supported server
Windows 2000 Server [desktop apps only]
Header
Gl.h
Library
Opengl32.lib
DLL
Opengl32.dll

See also

glBegin

glClear

glEnd

glGet