Lines Matching refs:Current

408       GLfloat *objnorm = ctx->Current.Attrib[VERT_ATTRIB_NORMAL];
419 ctx->Current.RasterPosValid = GL_FALSE;
425 ctx->Current.RasterPosValid = GL_FALSE;
431 ctx->Current.RasterPosValid = GL_FALSE;
438 ctx->Current.RasterPosValid = GL_FALSE;
449 ctx->Current.RasterPos[0] = ndc[0] * scale[0] + translate[0];
450 ctx->Current.RasterPos[1] = ndc[1] * scale[1] + translate[1];
451 ctx->Current.RasterPos[2] = ndc[2] * scale[2] + translate[2];
452 ctx->Current.RasterPos[3] = clip[3];
456 ctx->Current.RasterPos[3] = CLAMP(ctx->Current.RasterPos[3],
462 ctx->Current.RasterPos[3] = MAX2(ctx->Current.RasterPos[3],
467 ctx->Current.RasterPos[3] = MIN2(ctx->Current.RasterPos[3],
474 ctx->Current.RasterDistance = ctx->Current.Attrib[VERT_ATTRIB_FOG][0];
476 ctx->Current.RasterDistance =
493 ctx->Current.RasterColor,
494 ctx->Current.RasterSecondaryColor );
498 COPY_4FV(ctx->Current.RasterColor,
499 ctx->Current.Attrib[VERT_ATTRIB_COLOR0]);
500 COPY_4FV(ctx->Current.RasterSecondaryColor,
501 ctx->Current.Attrib[VERT_ATTRIB_COLOR1]);
509 COPY_4V(tc, ctx->Current.Attrib[VERT_ATTRIB_TEX0 + u]);
513 TRANSFORM_POINT(ctx->Current.RasterTexCoords[u],
518 ctx->Current.RasterPosValid = GL_TRUE;
522 _mesa_update_hitflag( ctx, ctx->Current.RasterPos[2] );
721 ctx->Current.RasterPos[0] = x;
722 ctx->Current.RasterPos[1] = y;
723 ctx->Current.RasterPos[2] = z2;
724 ctx->Current.RasterPos[3] = 1.0F;
726 ctx->Current.RasterPosValid = GL_TRUE;
729 ctx->Current.RasterDistance = ctx->Current.Attrib[VERT_ATTRIB_FOG][0];
731 ctx->Current.RasterDistance = 0.0;
734 ctx->Current.RasterColor[0]
735 = CLAMP(ctx->Current.Attrib[VERT_ATTRIB_COLOR0][0], 0.0F, 1.0F);
736 ctx->Current.RasterColor[1]
737 = CLAMP(ctx->Current.Attrib[VERT_ATTRIB_COLOR0][1], 0.0F, 1.0F);
738 ctx->Current.RasterColor[2]
739 = CLAMP(ctx->Current.Attrib[VERT_ATTRIB_COLOR0][2], 0.0F, 1.0F);
740 ctx->Current.RasterColor[3]
741 = CLAMP(ctx->Current.Attrib[VERT_ATTRIB_COLOR0][3], 0.0F, 1.0F);
742 ctx->Current.RasterSecondaryColor[0]
743 = CLAMP(ctx->Current.Attrib[VERT_ATTRIB_COLOR1][0], 0.0F, 1.0F);
744 ctx->Current.RasterSecondaryColor[1]
745 = CLAMP(ctx->Current.Attrib[VERT_ATTRIB_COLOR1][1], 0.0F, 1.0F);
746 ctx->Current.RasterSecondaryColor[2]
747 = CLAMP(ctx->Current.Attrib[VERT_ATTRIB_COLOR1][2], 0.0F, 1.0F);
748 ctx->Current.RasterSecondaryColor[3]
749 = CLAMP(ctx->Current.Attrib[VERT_ATTRIB_COLOR1][3], 0.0F, 1.0F);
755 assert(texSet < ARRAY_SIZE(ctx->Current.RasterTexCoords));
756 COPY_4FV( ctx->Current.RasterTexCoords[texSet],
757 ctx->Current.Attrib[VERT_ATTRIB_TEX0 + texSet] );
762 _mesa_update_hitflag( ctx, ctx->Current.RasterPos[2] );
773 ctx->Current.RasterPos[3] = w;
974 * __struct gl_contextRec::Current, and adds the extension entry points to the
981 ASSIGN_4V( ctx->Current.RasterPos, 0.0, 0.0, 0.0, 1.0 );
982 ctx->Current.RasterDistance = 0.0;
983 ASSIGN_4V( ctx->Current.RasterColor, 1.0, 1.0, 1.0, 1.0 );
984 ASSIGN_4V( ctx->Current.RasterSecondaryColor, 0.0, 0.0, 0.0, 1.0 );
985 for (i = 0; i < ARRAY_SIZE(ctx->Current.RasterTexCoords); i++)
986 ASSIGN_4V( ctx->Current.RasterTexCoords[i], 0.0, 0.0, 0.0, 1.0 );
987 ctx->Current.RasterPosValid = GL_TRUE;