Lines Matching refs:c
563 coord c; in drawHemisphere() local
571 c.x = ((f32) 2.0f*i/ST) - 1.0f; in drawHemisphere()
572 c.y = ((f32) 2.0f*j/TT) - 1.0f; in drawHemisphere()
573 c.z = -2.0f; in drawHemisphere()
574 c.nx = c.x / NRM_SCALE; in drawHemisphere()
575 c.ny = c.y / NRM_SCALE; in drawHemisphere()
576 c.nz = c.x*c.x + c.y*c.y; in drawHemisphere()
577 c.nz = c.nz < 1 ? sqrtf(1 - c.nz) : 0; in drawHemisphere()
578 sendVertex(&c); in drawHemisphere()
580 c.x = ((f32) 2.0f*(i+1)/ST) - 1.0f; in drawHemisphere()
581 c.nx = c.x / NRM_SCALE; in drawHemisphere()
582 c.nz = c.x*c.x + c.y*c.y; in drawHemisphere()
583 c.nz = c.nz < 1 ? sqrtf(1 - c.nz) : 0; in drawHemisphere()
584 sendVertex(&c); in drawHemisphere()
604 coord c; in showMaps() local
640 c.x = -1.0f; in showMaps()
641 c.y = -1.0f; in showMaps()
642 c.z = -1.0f; in showMaps()
643 c.s = 0.0f; in showMaps()
644 c.t = 0.0f; in showMaps()
645 sendVertex(&c); in showMaps()
646 c.x += (f32) TW/W*2; in showMaps()
647 c.s = 1.0f; in showMaps()
648 sendVertex(&c); in showMaps()
649 c.y += (f32) TH/H*2; in showMaps()
650 c.t = 1.0f; in showMaps()
651 sendVertex(&c); in showMaps()
652 c.x -= (f32) TW/W*2; in showMaps()
653 c.s = 0.0f; in showMaps()
654 sendVertex(&c); in showMaps()
661 c.x = 1.0f; in showMaps()
662 c.y = -1.0f; in showMaps()
663 c.z = -1.0f; in showMaps()
664 c.s = 1.0f; in showMaps()
665 c.t = 0.0f; in showMaps()
666 sendVertex(&c); in showMaps()
667 c.y += (f32) TH/H*2; in showMaps()
668 c.t = 1.0f; in showMaps()
669 sendVertex(&c); in showMaps()
670 c.x -= (f32) TW/W*2; in showMaps()
671 c.s = 0.0f; in showMaps()
672 sendVertex(&c); in showMaps()
673 c.y -= (f32) TH/H*2; in showMaps()
674 c.t = 0.0f; in showMaps()
675 sendVertex(&c); in showMaps()
682 c.x = -1.0f; in showMaps()
683 c.y = 1.0f; in showMaps()
684 c.z = -1.0f; in showMaps()
685 c.s = 0.0f; in showMaps()
686 c.t = 1.0f; in showMaps()
687 sendVertex(&c); in showMaps()
688 c.y -= (f32) IH/H; in showMaps()
689 c.t = 0.0f; in showMaps()
690 sendVertex(&c); in showMaps()
691 c.x += (f32) IW/W; in showMaps()
692 c.s = 1.0f; in showMaps()
693 sendVertex(&c); in showMaps()
694 c.y += (f32) IH/H; in showMaps()
695 c.t = 1.0f; in showMaps()
696 sendVertex(&c); in showMaps()
703 c.x = 1.0f; in showMaps()
704 c.y = 1.0f; in showMaps()
705 c.z = -1.0f; in showMaps()
706 c.s = 1.0f; in showMaps()
707 c.t = 1.0f; in showMaps()
708 sendVertex(&c); in showMaps()
709 c.x -= (f32) IW/W; in showMaps()
710 c.s = 0.0f; in showMaps()
711 sendVertex(&c); in showMaps()
712 c.y -= (f32) IH/H; in showMaps()
713 c.t = 0.0f; in showMaps()
714 sendVertex(&c); in showMaps()
715 c.x += (f32) IW/W; in showMaps()
716 c.s = 1.0f; in showMaps()
717 sendVertex(&c); in showMaps()