Rotating Sphere : OpenGL
The following program displays a wireframe sphere that can be rotated using the mouse. You can rotate and modify its colour using the mouse in the following ways :
a) Pressing the left mouse button turns the background colour red.
b) Pressing the mouse wheel turns the background colur green.
c) Pressing the right mouse button turns the background colour blue.
d) Clicking and dragging the mouse rotates the sphere with respect to the three coordinate axes.
The following video shows the Rotating Sphere in action :
Click here to view and download the source code of this project.
Click here to download Rotating Sphere.exe only (You’ll need glut.dll for running this application. Put both Rotating Sphere.exe and glut.dll in the same folder).