Пример #1
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);
 }
Пример #2
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);
 }
Пример #3
0
 /// <summary>
 /// Initializes a new quadric.
 /// </summary>
 private static void InitQuadObj()
 {
     quadObj = GLU.gluNewQuadric();
 }