[Front] [Reference] [Imp. Guide] [Index]

glFogCoord
[Prev] [Next]

glFogCoordd, glFogCoordf: set the current fog coordinates

C Specification | Parameters | Description | Notes | Associated Gets | See Also

[Up] C Specification

void glFogCoordd( GLdouble coord )
void glFogCoordf( GLfloat coord )
void glFogCoorddv( GLdouble* coordp )
void glFogCoordfv( GLfloat* coordp )

[Up] Parameters

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

[Up] 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())

[Up] Notes

glFogCoord is available only if 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().

[Up] Associated Gets

glIsEnabled with argument GL_CURRENT_FOG_COORD

[Up] See Also

glFog, glFogCoordPointer, glVertex

[Prev] [Next]
Front Reference [Imp. Guide] Index