Beispiel #1
0
 public static void glutSolidCone(double conebase, double height, int slices, int stacks)
 {
     QUAD_OBJ_INIT();
     GLU.gluQuadricDrawStyle(quadObj, GLU.GLU_FILL);
     GLU.gluQuadricNormals(quadObj, GLU.GLU_SMOOTH);
     // If we ever changed/used the texture or orientation state
     // of quadObj, we'd need to change it to the defaults here
     // with gluQuadricTexture and/or gluQuadricOrientation.
     GLU.gluCylinder(quadObj, conebase, 0.0, height, slices, stacks);
 }
Beispiel #2
0
 public static void glutSolidSphere(double radius, int slices, int stacks)
 {
     QUAD_OBJ_INIT();
     GLU.gluQuadricDrawStyle(quadObj, GLU.GLU_FILL);
     GLU.gluQuadricNormals(quadObj, GLU.GLU_SMOOTH);
     // If we ever changed/used the texture or orientation state
     // of quadObj, we'd need to change it to the defaults here
     // with gluQuadricTexture and/or gluQuadricOrientation.
     GLU.gluSphere(quadObj, radius, slices, stacks);
 }