Lines Matching refs:to

30      * initialize all vertex attributes to <0,0,0,1> for starters
161 const CRCurrentState *to = &(toCtx->current);
170 if (to->rasterValid) {
174 const GLfloat toX = to->rasterAttrib[VERT_ATTRIB_POS][0];
175 const GLfloat toY = to->rasterAttrib[VERT_ATTRIB_POS][1];
176 const GLfloat toZ = to->rasterAttrib[VERT_ATTRIB_POS][2];
179 diff_api.WindowPos3fvARB(to->rasterAttrib[VERT_ATTRIB_POS]);
191 ** We also need to restore the current state tracking pointer
196 if (to->colorIndex != from->colorIndex) {
197 diff_api.Indexf(to->colorIndex);
205 if (to->edgeFlag != from->edgeFlag) {
206 diff_api.EdgeFlag(to->edgeFlag);
224 if (COMPARE_VECTOR (from->vertexAttrib[i], to->vertexAttribPre[i])) {
225 diff_api.VertexAttrib4fvARB(i, &(to->vertexAttrib[i][0]));
243 if (COMPARE_COLOR(from->vertexAttrib[VERT_ATTRIB_COLOR0],to->vertexAttrib[VERT_ATTRIB_COLOR0])) {
244 diff_api.Color4fv ((GLfloat *) &(to->vertexAttrib[VERT_ATTRIB_COLOR0]));
254 if (COMPARE_COLOR(from->vertexAttrib[VERT_ATTRIB_COLOR1],to->vertexAttrib[VERT_ATTRIB_COLOR1])) {
255 diff_api.SecondaryColor3fvEXT ((GLfloat *) &(to->vertexAttrib[VERT_ATTRIB_COLOR1]));
266 if (from->vertexAttrib[VERT_ATTRIB_FOG][0] != to->vertexAttrib[VERT_ATTRIB_FOG][0] ) {
267 diff_api.FogCoordfvEXT ((GLfloat *) &(to->vertexAttrib[VERT_ATTRIB_FOG][0] ));
276 if (COMPARE_VECTOR (from->vertexAttrib[VERT_ATTRIB_NORMAL], to->vertexAttrib[VERT_ATTRIB_NORMAL])) {
277 diff_api.Normal3fv ((GLfloat *) &(to->vertexAttrib[VERT_ATTRIB_NORMAL][0]));
286 if (COMPARE_TEXCOORD (from->vertexAttrib[VERT_ATTRIB_TEX0 + i], to->vertexAttribPre[VERT_ATTRIB_TEX0 + i])) {
287 diff_api.MultiTexCoord4fvARB (i+GL_TEXTURE0_ARB, (GLfloat *) &(to->vertexAttrib[VERT_ATTRIB_TEX0+ i][0]));
304 const CRCurrentState *to = &(toCtx->current);
312 from->rasterValid = to->rasterValid;
313 if (to->rasterValid) {
317 const GLfloat toX = to->rasterAttrib[VERT_ATTRIB_POS][0];
318 const GLfloat toY = to->rasterAttrib[VERT_ATTRIB_POS][1];
319 const GLfloat toZ = to->rasterAttrib[VERT_ATTRIB_POS][2];
322 diff_api.WindowPos3fvARB(to->rasterAttrib[VERT_ATTRIB_POS]);
332 /* Some things to note here:
337 ** 3) Copy is done outside of the compare to ensure
343 if (from->edgeFlag != to->edgeFlagPre) {
344 diff_api.EdgeFlag (to->edgeFlagPre);
346 from->edgeFlag = to->edgeFlag;
352 if (from->colorIndex != to->colorIndexPre) {
353 diff_api.Indexf (to->colorIndex);
355 from->colorIndex = to->colorIndex;
372 if (COMPARE_VECTOR (from->vertexAttrib[i], to->vertexAttribPre[i])) {
373 diff_api.VertexAttrib4fvARB(i, &(to->vertexAttribPre[i][0]));
375 COPY_4V(from->vertexAttrib[i] , to->vertexAttrib[i]);
388 if (COMPARE_COLOR(from->vertexAttrib[VERT_ATTRIB_COLOR0],to->vertexAttribPre[VERT_ATTRIB_COLOR0])) {
389 diff_api.Color4fv ((GLfloat *) &(to->vertexAttribPre[VERT_ATTRIB_COLOR0]));
391 COPY_4V(from->vertexAttrib[VERT_ATTRIB_COLOR0] , to->vertexAttrib[VERT_ATTRIB_COLOR0]);
397 if (COMPARE_COLOR(from->vertexAttrib[VERT_ATTRIB_COLOR1],to->vertexAttribPre[VERT_ATTRIB_COLOR1])) {
398 diff_api.SecondaryColor3fvEXT ((GLfloat *) &(to->vertexAttribPre[VERT_ATTRIB_COLOR1]));
400 COPY_4V(from->vertexAttrib[VERT_ATTRIB_COLOR1] , to->vertexAttrib[VERT_ATTRIB_COLOR1]);
407 if (from->vertexAttrib[VERT_ATTRIB_FOG] != to->vertexAttribPre[VERT_ATTRIB_FOG]) {
408 diff_api.FogCoordfvEXT ((GLfloat *) &(to->vertexAttribPre[VERT_ATTRIB_FOG]));
410 COPY_4V(from->vertexAttrib[VERT_ATTRIB_FOG] , to->vertexAttrib[VERT_ATTRIB_FOG]);
416 if (COMPARE_VECTOR (from->vertexAttrib[VERT_ATTRIB_NORMAL], to->vertexAttribPre[VERT_ATTRIB_NORMAL])) {
417 diff_api.Normal3fv ((GLfloat *) &(to->vertexAttribPre[VERT_ATTRIB_NORMAL]));
419 COPY_4V(from->vertexAttrib[VERT_ATTRIB_NORMAL] , to->vertexAttrib[VERT_ATTRIB_NORMAL]);
426 if (COMPARE_TEXCOORD (from->vertexAttrib[VERT_ATTRIB_TEX0 + i], to->vertexAttribPre[VERT_ATTRIB_TEX0 + i])) {
427 diff_api.MultiTexCoord4fvARB (GL_TEXTURE0_ARB + i, (GLfloat *) &(to->vertexAttribPre[VERT_ATTRIB_TEX0 + i]));
429 COPY_4V(from->vertexAttrib[VERT_ATTRIB_TEX0 + i] , to->vertexAttrib[VERT_ATTRIB_TEX0 + i]);