Lines Matching refs:to

560     CRPixelState *to = &(toCtx->pixel);
568 if (from->mapColor != to->mapColor)
570 diff_api.PixelTransferi (GL_MAP_COLOR, to->mapColor);
571 from->mapColor = to->mapColor;
573 if (from->mapStencil != to->mapStencil)
575 diff_api.PixelTransferi (GL_MAP_STENCIL, to->mapStencil);
576 from->mapStencil = to->mapStencil;
578 if (from->indexOffset != to->indexOffset)
580 diff_api.PixelTransferi (GL_INDEX_OFFSET, to->indexOffset);
581 from->indexOffset = to->indexOffset;
583 if (from->indexShift != to->indexShift)
585 diff_api.PixelTransferi (GL_INDEX_SHIFT, to->indexShift);
586 from->indexShift = to->indexShift;
588 if (from->scale.r != to->scale.r)
590 diff_api.PixelTransferf (GL_RED_SCALE, to->scale.r);
591 from->scale.r = to->scale.r;
593 if (from->scale.g != to->scale.g)
595 diff_api.PixelTransferf (GL_GREEN_SCALE, to->scale.g);
596 from->scale.g = to->scale.g;
598 if (from->scale.b != to->scale.b)
600 diff_api.PixelTransferf (GL_BLUE_SCALE, to->scale.b);
601 from->scale.b = to->scale.b;
603 if (from->scale.a != to->scale.a)
605 diff_api.PixelTransferf (GL_ALPHA_SCALE, to->scale.a);
606 from->scale.a = to->scale.a;
608 if (from->bias.r != to->bias.r)
610 diff_api.PixelTransferf (GL_RED_BIAS, to->bias.r);
611 from->bias.r = to->bias.r;
613 if (from->bias.g != to->bias.g)
615 diff_api.PixelTransferf (GL_GREEN_BIAS, to->bias.g);
616 from->bias.g = to->bias.g;
618 if (from->bias.b != to->bias.b)
620 diff_api.PixelTransferf (GL_BLUE_BIAS, to->bias.b);
621 from->bias.b = to->bias.b;
623 if (from->bias.a != to->bias.a)
625 diff_api.PixelTransferf (GL_ALPHA_BIAS, to->bias.a);
626 from->bias.a = to->bias.a;
628 if (from->depthScale != to->depthScale)
630 diff_api.PixelTransferf (GL_DEPTH_SCALE, to->depthScale);
631 from->depthScale = to->depthScale;
633 if (from->depthBias != to->depthBias)
635 diff_api.PixelTransferf (GL_DEPTH_BIAS, to->depthBias);
636 from->depthBias = to->depthBias;
642 if (from->xZoom != to->xZoom ||
643 from->yZoom != to->yZoom)
645 diff_api.PixelZoom (to->xZoom,
646 to->yZoom);
647 from->xZoom = to->xZoom;
648 from->yZoom = to->yZoom;
654 if (crMemcmp(to->mapStoS, from->mapStoS, CR_MAX_PIXEL_MAP_TABLE*sizeof(GLfloat)))
655 diff_api.PixelMapfv(GL_PIXEL_MAP_S_TO_S,to->mapStoSsize,(GLfloat*)to->mapStoS);
656 if (crMemcmp(to->mapItoI, from->mapItoI, CR_MAX_PIXEL_MAP_TABLE*sizeof(GLfloat)))
657 diff_api.PixelMapfv(GL_PIXEL_MAP_I_TO_I,to->mapItoIsize,(GLfloat*)to->mapItoI);
658 if (crMemcmp(to->mapItoR, from->mapItoR, CR_MAX_PIXEL_MAP_TABLE*sizeof(GLfloat)))
659 diff_api.PixelMapfv(GL_PIXEL_MAP_I_TO_R,to->mapItoRsize,(GLfloat*)to->mapItoR);
660 if (crMemcmp(to->mapItoG, from->mapItoG, CR_MAX_PIXEL_MAP_TABLE*sizeof(GLfloat)))
661 diff_api.PixelMapfv(GL_PIXEL_MAP_I_TO_G,to->mapItoGsize,(GLfloat*)to->mapItoG);
662 if (crMemcmp(to->mapItoB, from->mapItoB, CR_MAX_PIXEL_MAP_TABLE*sizeof(GLfloat)))
663 diff_api.PixelMapfv(GL_PIXEL_MAP_I_TO_B,to->mapItoBsize,(GLfloat*)to->mapItoB);
664 if (crMemcmp(to->mapItoA, from->mapItoA, CR_MAX_PIXEL_MAP_TABLE*sizeof(GLfloat)))
665 diff_api.PixelMapfv(GL_PIXEL_MAP_I_TO_A,to->mapItoAsize,(GLfloat*)to->mapItoA);
666 if (crMemcmp(to->mapRtoR, from->mapRtoR, CR_MAX_PIXEL_MAP_TABLE*sizeof(GLfloat)))
667 diff_api.PixelMapfv(GL_PIXEL_MAP_R_TO_R,to->mapRtoRsize,(GLfloat*)to->mapRtoR);
668 if (crMemcmp(to->mapGtoG, from->mapGtoG, CR_MAX_PIXEL_MAP_TABLE*sizeof(GLfloat)))
669 diff_api.PixelMapfv(GL_PIXEL_MAP_G_TO_G,to->mapGtoGsize,(GLfloat*)to->mapGtoG);
670 if (crMemcmp(to->mapBtoB, from->mapBtoB, CR_MAX_PIXEL_MAP_TABLE*sizeof(GLfloat)))
671 diff_api.PixelMapfv(GL_PIXEL_MAP_B_TO_B,to->mapBtoBsize,(GLfloat*)to->mapBtoB);
672 if (crMemcmp(to->mapAtoA, from->mapAtoA, CR_MAX_PIXEL_MAP_TABLE*sizeof(GLfloat)))
673 diff_api.PixelMapfv(GL_PIXEL_MAP_A_TO_A,to->mapAtoAsize,(GLfloat*)to->mapAtoA);
683 CRPixelState *to = &(toCtx->pixel);
691 if (from->mapColor != to->mapColor)
693 diff_api.PixelTransferi (GL_MAP_COLOR, to->mapColor);
697 if (from->mapStencil != to->mapStencil)
699 diff_api.PixelTransferi (GL_MAP_STENCIL, to->mapStencil);
703 if (from->indexOffset != to->indexOffset)
705 diff_api.PixelTransferi (GL_INDEX_OFFSET, to->indexOffset);
709 if (from->indexShift != to->indexShift)
711 diff_api.PixelTransferi (GL_INDEX_SHIFT, to->indexShift);
715 if (from->scale.r != to->scale.r)
717 diff_api.PixelTransferf (GL_RED_SCALE, to->scale.r);
721 if (from->scale.g != to->scale.g)
723 diff_api.PixelTransferf (GL_GREEN_SCALE, to->scale.g);
727 if (from->scale.b != to->scale.b)
729 diff_api.PixelTransferf (GL_BLUE_SCALE, to->scale.b);
733 if (from->scale.a != to->scale.a)
735 diff_api.PixelTransferf (GL_ALPHA_SCALE, to->scale.a);
739 if (from->bias.r != to->bias.r)
741 diff_api.PixelTransferf (GL_RED_BIAS, to->bias.r);
745 if (from->bias.g != to->bias.g)
747 diff_api.PixelTransferf (GL_GREEN_BIAS, to->bias.g);
751 if (from->bias.b != to->bias.b)
753 diff_api.PixelTransferf (GL_BLUE_BIAS, to->bias.b);
757 if (from->bias.a != to->bias.a)
759 diff_api.PixelTransferf (GL_ALPHA_BIAS, to->bias.a);
763 if (from->depthScale != to->depthScale)
765 diff_api.PixelTransferf (GL_DEPTH_SCALE, to->depthScale);
769 if (from->depthBias != to->depthBias)
771 diff_api.PixelTransferf (GL_DEPTH_BIAS, to->depthBias);
779 if (from->xZoom != to->xZoom ||
780 from->yZoom != to->yZoom)
782 diff_api.PixelZoom (to->xZoom,
783 to->yZoom);
791 if (crMemcmp(to->mapStoS, from->mapStoS, CR_MAX_PIXEL_MAP_TABLE)) {
792 diff_api.PixelMapfv(GL_PIXEL_MAP_S_TO_S,to->mapStoSsize,(GLfloat*)to->mapStoS);
796 if (crMemcmp(to->mapItoI, from->mapItoI, CR_MAX_PIXEL_MAP_TABLE)) {
797 diff_api.PixelMapfv(GL_PIXEL_MAP_I_TO_I,to->mapItoIsize,(GLfloat*)to->mapItoI);
801 if (crMemcmp(to->mapItoR, from->mapItoR, CR_MAX_PIXEL_MAP_TABLE)) {
802 diff_api.PixelMapfv(GL_PIXEL_MAP_I_TO_R,to->mapItoRsize,(GLfloat*)to->mapItoR);
806 if (crMemcmp(to->mapItoG, from->mapItoG, CR_MAX_PIXEL_MAP_TABLE)) {
807 diff_api.PixelMapfv(GL_PIXEL_MAP_I_TO_G,to->mapItoGsize,(GLfloat*)to->mapItoG);
811 if (crMemcmp(to->mapItoB, from->mapItoB, CR_MAX_PIXEL_MAP_TABLE)) {
812 diff_api.PixelMapfv(GL_PIXEL_MAP_I_TO_B,to->mapItoBsize,(GLfloat*)to->mapItoB);
816 if (crMemcmp(to->mapItoA, from->mapItoA, CR_MAX_PIXEL_MAP_TABLE)) {
817 diff_api.PixelMapfv(GL_PIXEL_MAP_I_TO_A,to->mapItoAsize,(GLfloat*)to->mapItoA);
821 if (crMemcmp(to->mapRtoR, from->mapRtoR, CR_MAX_PIXEL_MAP_TABLE)) {
822 diff_api.PixelMapfv(GL_PIXEL_MAP_R_TO_R,to->mapRtoRsize,(GLfloat*)to->mapRtoR);
826 if (crMemcmp(to->mapGtoG, from->mapGtoG, CR_MAX_PIXEL_MAP_TABLE)) {
827 diff_api.PixelMapfv(GL_PIXEL_MAP_G_TO_G,to->mapGtoGsize,(GLfloat*)to->mapGtoG);
831 if (crMemcmp(to->mapBtoB, from->mapBtoB, CR_MAX_PIXEL_MAP_TABLE)) {
832 diff_api.PixelMapfv(GL_PIXEL_MAP_B_TO_B,to->mapBtoBsize,(GLfloat*)to->mapBtoB);
836 if (crMemcmp(to->mapAtoA, from->mapAtoA, CR_MAX_PIXEL_MAP_TABLE)) {
837 diff_api.PixelMapfv(GL_PIXEL_MAP_A_TO_A,to->mapAtoAsize,(GLfloat*)to->mapAtoA);