-->

Rendering Spheres glutSolidSphere and glutWireSphere using GLUT in C – A sample program

Rendering Spheres glutSolidSphere and glutWireSphere using GLUT in C – A sample program
    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.
    Read more »
    fardi zayden
    @مرسلة بواسطة
    كاتب ومحرر اخبار اعمل في موقع دراسات تقنية .

    إرسال تعليق