Lines Matching refs:numMinor
35 void MyCreateSphere(u8 numMajor, u8 numMinor);
36 void MyDrawSphere(u8 numMajor, u8 numMinor);
518 void MyCreateSphere(u8 numMajor, u8 numMinor) in MyCreateSphere() argument
521 f32 minorStep = (2.0F * PI / numMinor); in MyCreateSphere()
535 for (j = 0; j < numMinor; j++) in MyCreateSphere()
563 void MyDrawSphere(u8 numMajor, u8 numMinor) in MyDrawSphere() argument
569 GXBegin(GX_TRIANGLEFAN, GX_VTXFMT1, (u16) (numMinor+2)); in MyDrawSphere()
572 for (j = numMinor; j >= 0; j--) in MyDrawSphere()
574 GXPosition1x16((u16) (j % numMinor + 1)); in MyDrawSphere()
575 GXNormal1x16((u16) (j % numMinor + 1)); in MyDrawSphere()
582 n = (i-1) * numMinor + 1; in MyDrawSphere()
583 GXBegin(GX_TRIANGLESTRIP, GX_VTXFMT1, (u16) ((numMinor+1)*2)); in MyDrawSphere()
584 for (j = 0; j <= numMinor; j++) in MyDrawSphere()
586 GXPosition1x16((u16) (n + numMinor + j % numMinor)); in MyDrawSphere()
587 GXNormal1x16((u16) (n + numMinor + j % numMinor)); in MyDrawSphere()
588 GXPosition1x16((u16) (n + j % numMinor)); in MyDrawSphere()
589 GXNormal1x16((u16) (n + j % numMinor)); in MyDrawSphere()
595 n = (numMajor-1) * numMinor; in MyDrawSphere()
597 GXBegin(GX_TRIANGLEFAN, GX_VTXFMT1, (u16) (numMinor+2)); in MyDrawSphere()
600 for (j = numMinor; j >= 0; j--) in MyDrawSphere()
602 GXPosition1x16((u16) (n - j % numMinor)); in MyDrawSphere()
603 GXNormal1x16((u16) (n - j % numMinor)); in MyDrawSphere()