Lines Matching full:current
223 * update the current raster position.
238 ctx->Current.RasterPos[0] = x;
239 ctx->Current.RasterPos[1] = y;
240 ctx->Current.RasterPos[2] = z2;
241 ctx->Current.RasterPos[3] = 1.0F;
243 ctx->Current.RasterPosValid = GL_TRUE;
246 ctx->Current.RasterDistance = ctx->Current.Attrib[VERT_ATTRIB_FOG][0];
248 ctx->Current.RasterDistance = 0.0;
250 /* raster color = current color or index */
251 ctx->Current.RasterColor[0]
252 = CLAMP(ctx->Current.Attrib[VERT_ATTRIB_COLOR0][0], 0.0F, 1.0F);
253 ctx->Current.RasterColor[1]
254 = CLAMP(ctx->Current.Attrib[VERT_ATTRIB_COLOR0][1], 0.0F, 1.0F);
255 ctx->Current.RasterColor[2]
256 = CLAMP(ctx->Current.Attrib[VERT_ATTRIB_COLOR0][2], 0.0F, 1.0F);
257 ctx->Current.RasterColor[3]
258 = CLAMP(ctx->Current.Attrib[VERT_ATTRIB_COLOR0][3], 0.0F, 1.0F);
259 ctx->Current.RasterSecondaryColor[0]
260 = CLAMP(ctx->Current.Attrib[VERT_ATTRIB_COLOR1][0], 0.0F, 1.0F);
261 ctx->Current.RasterSecondaryColor[1]
262 = CLAMP(ctx->Current.Attrib[VERT_ATTRIB_COLOR1][1], 0.0F, 1.0F);
263 ctx->Current.RasterSecondaryColor[2]
264 = CLAMP(ctx->Current.Attrib[VERT_ATTRIB_COLOR1][2], 0.0F, 1.0F);
265 ctx->Current.RasterSecondaryColor[3]
266 = CLAMP(ctx->Current.Attrib[VERT_ATTRIB_COLOR1][3], 0.0F, 1.0F);
268 /* raster texcoord = current texcoord */
272 assert(texSet < Elements(ctx->Current.RasterTexCoords));
273 COPY_4FV( ctx->Current.RasterTexCoords[texSet],
274 ctx->Current.Attrib[VERT_ATTRIB_TEX0 + texSet] );
279 _mesa_update_hitflag( ctx, ctx->Current.RasterPos[2] );
290 ctx->Current.RasterPos[3] = w;
450 /* Push current matrix mode and viewport attributes */
545 * Initialize the context current raster position information.
549 * Initialize the current raster position information in
550 * __struct gl_contextRec::Current, and adds the extension entry points to the
557 ASSIGN_4V( ctx->Current.RasterPos, 0.0, 0.0, 0.0, 1.0 );
558 ctx->Current.RasterDistance = 0.0;
559 ASSIGN_4V( ctx->Current.RasterColor, 1.0, 1.0, 1.0, 1.0 );
560 ASSIGN_4V( ctx->Current.RasterSecondaryColor, 0.0, 0.0, 0.0, 1.0 );
561 for (i = 0; i < Elements(ctx->Current.RasterTexCoords); i++)
562 ASSIGN_4V( ctx->Current.RasterTexCoords[i], 0.0, 0.0, 0.0, 1.0 );
563 ctx->Current.RasterPosValid = GL_TRUE;