rename upstream-man-pages to upstream-doc
[clinton/guile-figl.git] / upstream-doc / man2 / glResetHistogram.xml
CommitLineData
7faf1d71
AW
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="glResetHistogram">
5 <refmeta>
6 <refmetainfo>
7 <copyright>
8 <year>1991-2006</year>
9 <holder>Silicon Graphics, Inc.</holder>
10 </copyright>
11 </refmetainfo>
12 <refentrytitle>glResetHistogram</refentrytitle>
13 <manvolnum>3G</manvolnum>
14 </refmeta>
15 <refnamediv>
16 <refname>glResetHistogram</refname>
17 <refpurpose>reset histogram table entries to zero</refpurpose>
18 </refnamediv>
19 <refsynopsisdiv><title>C Specification</title>
20 <funcsynopsis>
21 <funcprototype>
22 <funcdef>void <function>glResetHistogram</function></funcdef>
23 <paramdef>GLenum <parameter>target</parameter></paramdef>
24 </funcprototype>
25 </funcsynopsis>
26 </refsynopsisdiv>
27 <refsect1 id="parameters"><title>Parameters</title>
28 <variablelist>
29 <varlistentry>
30 <term><parameter>target</parameter></term>
31 <listitem>
32 <para>
33 Must be
34 <constant>GL_HISTOGRAM</constant>.
35 </para>
36 </listitem>
37 </varlistentry>
38 </variablelist>
39 </refsect1>
40 <refsect1 id="description"><title>Description</title>
41 <para>
42 <function>glResetHistogram</function> resets all the elements of the current histogram table to zero.
43 </para>
44 </refsect1>
45 <refsect1 id="notes"><title>Notes</title>
46 <para>
47 <function>glResetHistogram</function> is present only if <code>ARB_imaging</code> is returned when <citerefentry><refentrytitle>glGetString</refentrytitle></citerefentry>
48 is called with an argument of <constant>GL_EXTENSIONS</constant>.
49 </para>
50 </refsect1>
51 <refsect1 id="errors"><title>Errors</title>
52 <para>
53 <constant>GL_INVALID_ENUM</constant> is generated if <parameter>target</parameter> is not <constant>GL_HISTOGRAM</constant>.
54 </para>
55 <para>
56 <constant>GL_INVALID_OPERATION</constant> is generated if <function>glResetHistogram</function> is executed
57 between the execution of <citerefentry><refentrytitle>glBegin</refentrytitle></citerefentry> and the corresponding
58 execution of <citerefentry><refentrytitle>glEnd</refentrytitle></citerefentry>.
59 </para>
60 </refsect1>
61 <refsect1 id="seealso"><title>See Also</title>
62 <para>
63 <citerefentry><refentrytitle>glHistogram</refentrytitle></citerefentry>
64 </para>
65 </refsect1>
66 <refsect1 id="Copyright"><title>Copyright</title>
67 <para>
68 Copyright <trademark class="copyright"></trademark> 1991-2006
69 Silicon Graphics, Inc. This document is licensed under the SGI
70 Free Software B License. For details, see
71 <ulink url="http://oss.sgi.com/projects/FreeB/">http://oss.sgi.com/projects/FreeB/</ulink>.
72 </para>
73 </refsect1>
74</refentry>