Lines Matching refs:value
49 copy_matrix(float *value, const float *m, unsigned firstRow, unsigned lastRow)
57 value[i++] = m[row + 0];
58 value[i++] = m[row + 4];
59 value[i++] = m[row + 8];
60 value[i++] = m[row + 12];
65 copy_matrix_transposed(float *value, const float *m, unsigned firstRow, unsigned lastRow)
70 memcpy(value, &m[firstRow * 4],
76 * and return it in <value>. Usually, four values are returned in <value>
85 GLfloat *value = &val->f;
96 value[0] = mat->Attrib[index][0];
97 value[1] = 0.0F;
98 value[2] = 0.0F;
99 value[3] = 1.0F;
101 COPY_4V(value, mat->Attrib[index]);
113 COPY_4V(value, (float*)&ctx->Light.LightSource[ln] + index * 4);
115 value[0] = ctx->Light.LightSource[ln].SpotCutoff;
124 /* state[1] is the index of the first value */
127 memcpy(value, &ctx->Light.LightSourceData[state[1]],
135 COPY_4V(value,
137 value += 4;
142 COPY_4V(value, ctx->Light.Model.Ambient);
149 value[i] = ctx->Light.Model.Ambient[i]
153 value[3] = ctx->Light.Material.Attrib[MAT_ATTRIB_FRONT_DIFFUSE][3];
159 value[i] = ctx->Light.Model.Ambient[i]
163 value[3] = ctx->Light.Material.Attrib[MAT_ATTRIB_BACK_DIFFUSE][3];
183 value[i] = ctx->Light.LightSource[ln].Ambient[attr + i] *
187 value[3] = ctx->Light.Material.Attrib[index][3];
206 *value++ =
211 *value++ = ctx->Light.Material.Attrib[attrib][3];
232 *value++ =
237 *value++ = ctx->Light.Material.Attrib[attrib][3];
258 *value++ =
263 *value++ = ctx->Light.Material.Attrib[attrib][3];
292 COPY_4V(value, attr);
300 COPY_4V(value, ctx->Texture.FixedFuncUnit[unit].EnvColor);
302 COPY_4V(value, ctx->Texture.FixedFuncUnit[unit].EnvColorUnclamped);
307 COPY_4V(value, ctx->Fog.Color);
309 COPY_4V(value, ctx->Fog.ColorUnclamped);
312 value[0] = ctx->Fog.Density;
313 value[1] = ctx->Fog.Start;
314 value[2] = ctx->Fog.End;
315 value[3] = 1.0f / (ctx->Fog.End - ctx->Fog.Start);
320 COPY_4V(value, ctx->Transform.EyeUserPlane[plane]);
324 value[0] = ctx->Point.Size;
325 value[1] = ctx->Point.MinSize;
326 value[2] = ctx->Point.MaxSize;
327 value[3] = ctx->Point.Threshold;
330 value[0] = ctx->Point.Params[0];
331 value[1] = ctx->Point.Params[1];
332 value[2] = ctx->Point.Params[2];
333 value[3] = 1.0F;
341 copy_matrix(value, matrix->m, state[2], state[3]);
346 copy_matrix(value, matrix->inv, state[2], state[3]);
351 copy_matrix_transposed(value, matrix->m, state[2], state[3]);
356 copy_matrix_transposed(value, matrix->inv, state[2], state[3]);
361 copy_matrix(value, matrix->m, state[2], state[3]);
367 copy_matrix(value, matrix->inv, state[2], state[3]);
372 copy_matrix_transposed(value, matrix->m, state[2], state[3]);
378 copy_matrix_transposed(value, matrix->inv, state[2], state[3]);
383 copy_matrix(value, matrix->m, state[2], state[3]);
389 copy_matrix(value, matrix->inv, state[2], state[3]);
394 copy_matrix_transposed(value, matrix->m, state[2], state[3]);
400 copy_matrix_transposed(value, matrix->inv, state[2], state[3]);
407 copy_matrix(value, matrix->m, state[2], state[3]);
414 copy_matrix(value, matrix->inv, state[2], state[3]);
421 copy_matrix_transposed(value, matrix->m, state[2], state[3]);
428 copy_matrix_transposed(value, matrix->inv, state[2], state[3]);
435 copy_matrix(value, matrix->m, state[2], state[3]);
443 copy_matrix(value, matrix->inv, state[2], state[3]);
450 copy_matrix_transposed(value, matrix->m, state[2], state[3]);
458 copy_matrix_transposed(value, matrix->inv, state[2], state[3]);
465 value[0] = ctx->ViewportArray[0].Near; /* near */
466 value[1] = ctx->ViewportArray[0].Far; /* far */
467 value[2] = ctx->ViewportArray[0].Far - ctx->ViewportArray[0].Near; /* far - near */
468 value[3] = 1.0;
472 COPY_4V(value, ctx->FragmentProgram.Parameters[idx]);
478 memcpy(value, ctx->FragmentProgram.Parameters[idx], bytes);
488 memset(value, 0, sizeof(float) * 4);
493 COPY_4V(value, params[idx]);
505 memset(value, 0, bytes);
508 memcpy(value, params[idx], bytes);
513 COPY_4V(value, ctx->VertexProgram.Parameters[idx]);
519 memcpy(value, ctx->VertexProgram.Parameters[idx], bytes);
529 memset(value, 0, sizeof(float) * 4);
534 COPY_4V(value, params[idx]);
546 memset(value, 0, bytes);
549 memcpy(value, params[idx], bytes);
554 ASSIGN_4V(value, ctx->_ModelViewInvScaleEyespace, 0, 0, 1);
560 COPY_4V(value, ctx->Current.Attrib[idx]);
570 value[0] = SATURATE(ctx->Current.Attrib[idx][0]);
571 value[1] = SATURATE(ctx->Current.Attrib[idx][1]);
572 value[2] = SATURATE(ctx->Current.Attrib[idx][2]);
573 value[3] = SATURATE(ctx->Current.Attrib[idx][3]);
576 COPY_4V(value, ctx->Current.Attrib[idx]);
581 ASSIGN_4V(value,
599 value[0] = val;
600 value[1] = ctx->Fog.End * -val;
601 value[2] = (GLfloat)(ctx->Fog.Density * M_LOG2E); /* M_LOG2E == 1/ln(2) */
602 value[3] = (GLfloat)(ctx->Fog.Density * ONE_DIV_SQRT_LN2);
632 value[0] = ctx->Point.Size;
633 value[1] = ctx->Point.MinSize >= minImplSize ? ctx->Point.MinSize : minImplSize;
634 value[2] = ctx->Point.MaxSize <= maxImplSize ? ctx->Point.MaxSize : maxImplSize;
635 value[3] = ctx->Point.Threshold;
643 COPY_3V(value, ctx->Light.Light[ln]._NormSpotDirection);
644 value[3] = ctx->Light.LightSource[ln]._CosCutoff;
651 COPY_4V(value, ctx->Light.Light[ln]._Position);
659 COPY_4V(value, ctx->Light.Light[first + i]._Position);
660 value += 4;
671 COPY_4V(value, p);
682 COPY_4V(value, p);
683 value += 4;
700 COPY_3V(value, p);
701 value[3] = 1.0;
706 value[0] = ctx->Pixel.RedScale;
707 value[1] = ctx->Pixel.GreenScale;
708 value[2] = ctx->Pixel.BlueScale;
709 value[3] = ctx->Pixel.AlphaScale;
713 value[0] = ctx->Pixel.RedBias;
714 value[1] = ctx->Pixel.GreenBias;
715 value[2] = ctx->Pixel.BlueBias;
716 value[3] = ctx->Pixel.AlphaBias;
720 value[0] = (GLfloat) (ctx->DrawBuffer->Width - 1);
721 value[1] = (GLfloat) (ctx->DrawBuffer->Height - 1);
722 value[2] = 0.0F;
723 value[3] = 0.0F;
731 value[0] = 1.0F;
732 value[1] = 0.0F;
733 value[2] = -1.0F;
734 value[3] = _mesa_geometric_height(ctx->DrawBuffer);
737 value[0] = -1.0F;
738 value[1] = _mesa_geometric_height(ctx->DrawBuffer);
739 value[2] = 1.0F;
740 value[3] = 0.0F;
750 value[0] = flip_y ? -1.0F : 1.0F;
751 value[1] = flip_y ? 1.0F : 0.0F;
752 value[2] = 0.0F;
753 value[3] = 0.0F;
774 value[0] = ctx->Color.AlphaRefUnclamped;
780 COPY_4V(value, ctx->Transform._ClipUserPlane[plane]);
923 /* Needs to return any nonzero value to trigger constant updating */
1372 * is a GL state reference, look up the current value of that state