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=
"glFogCoord">
9 <holder>Silicon Graphics, Inc.
</holder>
12 <refentrytitle>glFogCoord
</refentrytitle>
13 <manvolnum>3G
</manvolnum>
16 <refname>glFogCoord
</refname>
17 <refpurpose>set the current fog coordinates
</refpurpose>
19 <refsynopsisdiv><title>C Specification
</title>
22 <funcdef>void
<function>glFogCoordd
</function></funcdef>
23 <paramdef>GLdouble
<parameter>coord
</parameter></paramdef>
28 <funcdef>void
<function>glFogCoordf
</function></funcdef>
29 <paramdef>GLfloat
<parameter>coord
</parameter></paramdef>
33 <refsect1 id=
"parameters"><title>Parameters
</title>
36 <term><parameter>coord
</parameter></term>
39 Specify the fog distance.
45 <refsynopsisdiv><title>C Specification
</title>
48 <funcdef>void
<function>glFogCoorddv
</function></funcdef>
49 <paramdef>GLdouble *
<parameter>coord
</parameter></paramdef>
54 <funcdef>void
<function>glFogCoordfv
</function></funcdef>
55 <paramdef>GLfloat *
<parameter>coord
</parameter></paramdef>
59 <refsect1 id=
"parameters2"><title>Parameters
</title>
62 <term><parameter>coord
</parameter></term>
65 Specifies a pointer to an array containing a single value representing the
72 <refsect1 id=
"description"><title>Description
</title>
74 <function>glFogCoord
</function> specifies the fog coordinate that is associated with each vertex and
75 the current raster position. The value specified is interpolated and used
76 in computing the fog color (see
<citerefentry><refentrytitle>glFog
</refentrytitle></citerefentry>).
79 <refsect1 id=
"notes"><title>Notes
</title>
81 <function>glFogCoord
</function> is available only if the GL version is
1.4 or greater.
84 The current fog coordinate can be updated at any time. In particular,
85 <function>glFogCoord
</function> can be called between a call to
<citerefentry><refentrytitle>glBegin
</refentrytitle></citerefentry> and the corresponding
86 call to
<citerefentry><refentrytitle>glEnd
</refentrytitle></citerefentry>.
89 <refsect1 id=
"associatedgets"><title>Associated Gets
</title>
91 <citerefentry><refentrytitle>glGet
</refentrytitle></citerefentry> with argument
<constant>GL_CURRENT_FOG_COORD
</constant>
94 <refsect1 id=
"seealso"><title>See Also
</title>
96 <citerefentry><refentrytitle>glFog
</refentrytitle></citerefentry>,
97 <citerefentry><refentrytitle>glFogCoordPointer
</refentrytitle></citerefentry>,
98 <citerefentry><refentrytitle>glVertex
</refentrytitle></citerefentry>
101 <refsect1 id=
"Copyright"><title>Copyright
</title>
103 Copyright
<trademark class=
"copyright"></trademark> 1991-
2006
104 Silicon Graphics, Inc. This document is licensed under the SGI
105 Free Software B License. For details, see
106 <ulink url=
"http://oss.sgi.com/projects/FreeB/">http://oss.sgi.com/projects/FreeB/
</ulink>.