core | glapi | vbo | math | shader | swrast | swrast_setup | tnl | tnl_dd

s_fog.h File Reference

#include "swrast.h"

Functions

GLfloat _swrast_z_to_fogfactor (GLcontext *ctx, GLfloat z)
 Used to convert current raster distance to a fog factor in [0,1].
void _swrast_fog_rgba_span (const GLcontext *ctx, SWspan *span)
 Apply fog to a span of RGBA pixels.
void _swrast_fog_ci_span (const GLcontext *ctx, SWspan *span)
 As above, but color index mode.


Function Documentation

void _swrast_fog_ci_span ( const GLcontext ctx,
SWspan span 
)

As above, but color index mode.

void _swrast_fog_rgba_span ( const GLcontext ctx,
SWspan span 
)

Apply fog to a span of RGBA pixels.

The fog value are either in the span->array->fog array or interpolated from the fog/fogStep values. They fog values are either fog coordinates (Z) or fog blend factors. _PreferPixelFog should be in sync with that state!

GLfloat _swrast_z_to_fogfactor ( GLcontext ctx,
GLfloat  z 
)

Used to convert current raster distance to a fog factor in [0,1].


Generated on Sun Sep 27 06:48:05 2009 for Mesa Software Rasterization (swrast) by  doxygen 1.5.4