OpenGl Graphics : spin object on click

OpenGl Graphics : spin object on left click 

Opengl
OpenGL (Open Graphics Library) is a cross-language, multi-platform application programming interface (API) for rendering 2D and 3D vector graphics. The API is typically used to interact with a Graphics processing unit, to achieve hardware-accelerated rendering.                          
OpenGL is an evolving API. New versions of the OpenGL specification are regularly released by the Khronos Group, each of which extends the API to support various new features. The details of each version are decided by consensus between the Group's members, including graphics card manufacturers, operating system designers, and general technology companies such as Mozillaand Google.
Program:

Output:-

Comments