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

fog.c File Reference

#include "glheader.h"
#include "colormac.h"
#include "context.h"
#include "fog.h"
#include "mtypes.h"

Defines

#define UPDATE_FOG_SCALE(ctx)

Functions

void GLAPIENTRY _mesa_Fogf (GLenum pname, GLfloat param)
void GLAPIENTRY _mesa_Fogi (GLenum pname, GLint param)
void GLAPIENTRY _mesa_Fogiv (GLenum pname, const GLint *params)
void GLAPIENTRY _mesa_Fogfv (GLenum pname, const GLfloat *params)
void _mesa_init_fog (GLcontext *ctx)


Define Documentation

#define UPDATE_FOG_SCALE ( ctx   ) 

Value:

do {\
      if (ctx->Fog.End == ctx->Fog.Start)\
         ctx->Fog._Scale = 1.0f;\
      else\
         ctx->Fog._Scale = 1.0f / (ctx->Fog.End - ctx->Fog.Start);\
   } while(0)


Function Documentation

void GLAPIENTRY _mesa_Fogf ( GLenum  pname,
GLfloat  param 
)

void GLAPIENTRY _mesa_Fogfv ( GLenum  pname,
const GLfloat *  params 
)

void GLAPIENTRY _mesa_Fogi ( GLenum  pname,
GLint  param 
)

void GLAPIENTRY _mesa_Fogiv ( GLenum  pname,
const GLint *  params 
)

void _mesa_init_fog ( GLcontext ctx  ) 


Generated on Sun Sep 27 06:47:45 2009 for Mesa Main by  doxygen 1.5.4