glFogCoord — set the current fog coordinates
void glFogCoordd( | GLdouble | coord) ; |
void glFogCoordf( | GLfloat | coord) ; |
void glFogCoorddv( | GLdouble * | coord) ; |
void glFogCoordfv( | GLfloat * | coord) ; |
coord
Specifies a pointer to an array containing a single value representing the fog distance.
glFogCoord
specifies the fog coordinate that is associated with each vertex and the current raster position. The value specified is interpolated and used in computing the fog color (see glFog).
glFogCoord
is available only if the GL version is 1.4 or greater.
The current fog coordinate can be updated at any time. In particular, glFogCoord
can be called between a call to glBegin and the corresponding call to glEnd.
Copyright © 1991-2006 Silicon Graphics, Inc. This document is licensed under the SGI Free Software B License. For details, see https://web.archive.org/web/20171022161616/http://oss.sgi.com/projects/FreeB/.