[ Previous | Next | Contents | Glossary | Home | Search ]
OpenGL 1.1 for AIX: Reference Manual

glClearAccum Subroutine

Purpose

Specifies clear values for the accumulation buffer.

Library

OpenGL C bindings library: libGL.a

C Syntax

void glClearAccum(GLfloat Red, GLfloat Green,  GLfloat Blue, GLfloat Alpha)

Parameters

Red Specifies the red value used when the accumulation buffer is cleared. The default value is 0 (zero).
Green Specifies the green value used when the accumulation buffer is cleared. The default value is 0.
Blue Specifies the blue value used when the accumulation buffer is cleared. The default value is 0.
Alpha Specifies the alpha value used when the accumulation buffer is cleared. The default value is 0.

Description

The glClearAccum subroutine specifies the red, green, blue, and alpha values used by the glClear subroutine to clear the accumulation buffer. Values specified by glClearAccum are clamped to the range [-1,1].

Errors

GL_INVALID_OPERATION The glClearAccum subroutine is called between a call to glBegin and the corresponding call to glEnd.

Associated Gets

Associated gets for the glClearAccum subroutine are as follows. (See the glGet subroutine for more information.)

glGet with argument GL_ACCUM_CLEAR_VALUE.

Files

/usr/include/GL/gl.h Contains C language constants, variable type definitions, and ANSI function prototypes for OpenGL.

Related Information

The glBegin or glEnd subroutine, glClear subroutine.

OpenGL Overview.


[ Previous | Next | Contents | Glossary | Home | Search ]