1 <?xml version=
"1.0" encoding=
"UTF-8"?>
2 <!DOCTYPE book PUBLIC
"-//OASIS//DTD DocBook MathML Module V1.1b1//EN"
3 "http://www.oasis-open.org/docbook/xml/mathml/1.1CR1/dbmathml.dtd">
4 <refentry id=
"glClearAccum">
9 <holder>Silicon Graphics, Inc.
</holder>
12 <refentrytitle>glClearAccum
</refentrytitle>
13 <manvolnum>3G
</manvolnum>
16 <refname>glClearAccum
</refname>
17 <refpurpose>specify clear values for the accumulation buffer
</refpurpose>
19 <refsynopsisdiv><title>C Specification
</title>
22 <funcdef>void
<function>glClearAccum
</function></funcdef>
23 <paramdef>GLfloat
<parameter>red
</parameter></paramdef>
24 <paramdef>GLfloat
<parameter>green
</parameter></paramdef>
25 <paramdef>GLfloat
<parameter>blue
</parameter></paramdef>
26 <paramdef>GLfloat
<parameter>alpha
</parameter></paramdef>
30 <refsect1 id=
"parameters"><title>Parameters
</title>
33 <term><parameter>red
</parameter></term>
34 <term><parameter>green
</parameter></term>
35 <term><parameter>blue
</parameter></term>
36 <term><parameter>alpha
</parameter></term>
39 Specify the red, green, blue, and alpha values used when the
40 accumulation buffer is cleared.
41 The initial values are all
0.
47 <refsect1 id=
"description"><title>Description
</title>
49 <function>glClearAccum
</function> specifies the red, green, blue, and alpha values used by
<citerefentry><refentrytitle>glClear
</refentrytitle></citerefentry>
50 to clear the accumulation buffer.
53 Values specified by
<function>glClearAccum
</function> are clamped to the
55 <inlineequation><mml:math>
57 <mml:mfenced open=
"[" close=
"]">
61 </mml:math></inlineequation>.
64 <refsect1 id=
"errors"><title>Errors
</title>
66 <constant>GL_INVALID_OPERATION
</constant> is generated if
<function>glClearAccum
</function>
67 is executed between the execution of
<citerefentry><refentrytitle>glBegin
</refentrytitle></citerefentry>
68 and the corresponding execution of
<citerefentry><refentrytitle>glEnd
</refentrytitle></citerefentry>.
71 <refsect1 id=
"associatedgets"><title>Associated Gets
</title>
73 <citerefentry><refentrytitle>glGet
</refentrytitle></citerefentry> with argument
<constant>GL_ACCUM_CLEAR_VALUE
</constant>
76 <refsect1 id=
"seealso"><title>See Also
</title>
78 <citerefentry><refentrytitle>glAccum
</refentrytitle></citerefentry>,
79 <citerefentry><refentrytitle>glClear
</refentrytitle></citerefentry>
82 <refsect1 id=
"Copyright"><title>Copyright
</title>
84 Copyright
<trademark class=
"copyright"></trademark> 1991-
2006
85 Silicon Graphics, Inc. This document is licensed under the SGI
86 Free Software B License. For details, see
87 <ulink url=
"http://oss.sgi.com/projects/FreeB/">http://oss.sgi.com/projects/FreeB/
</ulink>.