GLUT provides function glutSolidSphere to render a Solid Sphere and glutWireSphere to render a Wire Frame Sphere. They Render the spheres centered at the modeling coordinates origin of the specified radii. The sphere is subdivided around the Z axis into slices and along the Z axis into stacks. Here are the syntax of both the above functions
void glutSolidSphere (GLdouble radius, GLint slices, GLint stacks);
void glutWireSphere (GLdouble radius, GLint slices, GLint stacks);
Where, radius –> The radius of the spheres, slices –> The number of subdivision around the Z-axis and stacks –> The number of subdivisions along the Z-axis.
تعليقات: 0
إرسال تعليق