Previous: glFog Table of Contents (GL) Next: glFogCoordPointer

glFogCoord

set the current fog coordinates

Deprecation Notice

Note that this function has been marked deprecated in the OpenGL 3.0 specification. You should not be using this function in new code, though it will likely be supported by most implementations via the GL_ARB_compatibility extension. For more information on OpenGL 3.x deprecations, see the deprecations page.

Signature

glFogCoord( )->
glFogCoordd( GLdouble ( coord ) )-> void
glFogCoordd( coord )
glFogCoordd(GLdouble(coord)) -> None
glFogCoorddv( GLdouble * ( coord ) )-> void
glFogCoorddv( coord )
glFogCoorddv(GLdoubleArray(coord)) -> None
glFogCoordf( GLfloat ( coord ) )-> void
glFogCoordf( coord )
glFogCoordf(GLfloat(coord)) -> None
glFogCoordfv( GLfloat * ( coord ) )-> void
glFogCoordfv( coord )
glFogCoordfv(GLfloatArray(coord)) -> None

Parameters

VariablesDescription
coord
Specify the fog distance.

Parameters

coord
Specifies a pointer to an array containing a single value representing the fog distance.

Description

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 ).

Notes

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 .

Associated Gets

glGet with argument GL_CURRENT_FOG_COORD

See Also

Previous: glFog Table of Contents (GL) Next: glFogCoordPointer