Lines Matching defs:params
55 _mesa_Fogiv(GLenum pname, const GLint *params )
66 p[0] = (GLfloat) *params;
69 p[0] = INT_TO_FLOAT( params[0] );
70 p[1] = INT_TO_FLOAT( params[1] );
71 p[2] = INT_TO_FLOAT( params[2] );
72 p[3] = INT_TO_FLOAT( params[3] );
83 _mesa_Fogfv( GLenum pname, const GLfloat *params )
90 m = (GLenum) (GLint) *params;
113 if (*params<0.0F) {
117 if (ctx->Fog.Density == *params)
120 ctx->Fog.Density = *params;
123 if (ctx->Fog.Start == *params)
126 ctx->Fog.Start = *params;
129 if (ctx->Fog.End == *params)
132 ctx->Fog.End = *params;
137 if (ctx->Fog.Index == *params)
140 ctx->Fog.Index = *params;
143 if (TEST_EQ_4V(ctx->Fog.Color, params))
146 ctx->Fog.ColorUnclamped[0] = params[0];
147 ctx->Fog.ColorUnclamped[1] = params[1];
148 ctx->Fog.ColorUnclamped[2] = params[2];
149 ctx->Fog.ColorUnclamped[3] = params[3];
150 ctx->Fog.Color[0] = CLAMP(params[0], 0.0F, 1.0F);
151 ctx->Fog.Color[1] = CLAMP(params[1], 0.0F, 1.0F);
152 ctx->Fog.Color[2] = CLAMP(params[2], 0.0F, 1.0F);
153 ctx->Fog.Color[3] = CLAMP(params[3], 0.0F, 1.0F);
156 GLenum p = (GLenum) (GLint) *params;
169 GLenum p = (GLenum) (GLint) *params;
186 ctx->Driver.Fogfv( ctx, pname, params );