Lines Matching refs:c

596     int c, f, v;  in drawDonut()  local
601 for(c=0; c<9; c++) // for each cube in drawDonut()
603 if (c==4) continue; // middle cube not drawn in drawDonut()
605 x = (c % 3) - 1; // compute cube offset in drawDonut()
606 y = 1 - (c / 3); in drawDonut()
610 if (!(face[c] & ((1<<5)>>f))) continue; in drawDonut()
632 coord c; in drawHemisphere() local
640 c.x = ((f32) 2.0f*(i+1)/ST) - 1.0f; in drawHemisphere()
641 c.y = ((f32) 2.0f*j/TT) - 1.0f; in drawHemisphere()
642 c.z = -2.0f; in drawHemisphere()
643 c.nx = c.x / NRM_SCALE; in drawHemisphere()
644 c.ny = c.y / NRM_SCALE; in drawHemisphere()
645 c.nz = c.x*c.x + c.y*c.y; in drawHemisphere()
646 c.nz = c.nz < 1 ? sqrtf(1 - c.nz) : 0; in drawHemisphere()
647 sendVertex(&c); in drawHemisphere()
649 c.x = ((f32) 2.0f*(i+0)/ST) - 1.0f; in drawHemisphere()
650 c.nx = c.x / NRM_SCALE; in drawHemisphere()
651 c.nz = c.x*c.x + c.y*c.y; in drawHemisphere()
652 c.nz = c.nz < 1 ? sqrtf(1 - c.nz) : 0; in drawHemisphere()
653 sendVertex(&c); in drawHemisphere()
672 coord c; in showMaps() local
710 c.x = -1.0f; in showMaps()
711 c.y = 1.0f; in showMaps()
712 c.z = -1.0f; in showMaps()
713 c.s = 0.0f; in showMaps()
714 c.t = 0.0f; in showMaps()
715 sendVertex(&c); in showMaps()
716 c.x += (f32) TW/W*2; in showMaps()
717 c.s = 1.0f; in showMaps()
718 sendVertex(&c); in showMaps()
719 c.y -= (f32) TH/H*2; in showMaps()
720 c.t = 1.0f; in showMaps()
721 sendVertex(&c); in showMaps()
722 c.x -= (f32) TW/W*2; in showMaps()
723 c.s = 0.0f; in showMaps()
724 sendVertex(&c); in showMaps()
731 c.x = -1.0f; in showMaps()
732 c.y = -1.0f; in showMaps()
733 c.z = -1.0f; in showMaps()
734 c.s = 0.0f; in showMaps()
735 c.t = 1.0f; in showMaps()
736 sendVertex(&c); in showMaps()
737 c.y += (f32) TH/H*2; in showMaps()
738 c.t = 0.0f; in showMaps()
739 sendVertex(&c); in showMaps()
740 c.x += (f32) TW/W*2; in showMaps()
741 c.s = 1.0f; in showMaps()
742 sendVertex(&c); in showMaps()
743 c.y -= (f32) TH/H*2; in showMaps()
744 c.t = 1.0f; in showMaps()
745 sendVertex(&c); in showMaps()
753 c.x = 1.0f; in showMaps()
754 c.y = 1.0f; in showMaps()
755 c.z = -1.0f; in showMaps()
756 c.s = 1.0f; in showMaps()
757 c.t = 0.0f; in showMaps()
758 sendVertex(&c); in showMaps()
759 c.y -= (f32) IH/H*IS; in showMaps()
760 c.t = 0.75f; in showMaps()
761 sendVertex(&c); in showMaps()
762 c.x -= (f32) IW/W*IS; in showMaps()
763 c.s = 0.0f; in showMaps()
764 sendVertex(&c); in showMaps()
765 c.y += (f32) IH/H*IS; in showMaps()
766 c.t = 0.0f; in showMaps()
767 sendVertex(&c); in showMaps()
775 c.y -= (f32) IH/H*IS + (64.0f/H); in showMaps()
776 sendVertex(&c); in showMaps()
777 c.x += (f32) IW/W*IS; in showMaps()
778 c.s = 1.0f; in showMaps()
779 sendVertex(&c); in showMaps()
780 c.y -= (f32) IH/H*IS; in showMaps()
781 c.t = 0.75f; in showMaps()
782 sendVertex(&c); in showMaps()
783 c.x -= (f32) IW/W*IS; in showMaps()
784 c.s = 0.0f; in showMaps()
785 sendVertex(&c); in showMaps()
793 c.y -= (f32) 64.0f/H; in showMaps()
794 c.t = 0.0f; in showMaps()
795 sendVertex(&c); in showMaps()
796 c.x += (f32) IW/W*IS; in showMaps()
797 c.s = 1.0f; in showMaps()
798 sendVertex(&c); in showMaps()
799 c.y -= (f32) IH/H*IS; in showMaps()
800 c.t = 0.75f; in showMaps()
801 sendVertex(&c); in showMaps()
802 c.x -= (f32) IW/W*IS; in showMaps()
803 c.s = 0.0f; in showMaps()
804 sendVertex(&c); in showMaps()