regarding mouse motion

Can someone teach me how to make a sphere move according to my mouse motion in a opengl window? Im using win32 console application. It will be helpful if someone can post some useful links on this issue with some sample source code to help me out.

simple: just tape the sphere on the back of a cat é voila!


Anyone can help? I in need of some advices because my project is nearing deadline.

Get the GLUT source distribution from:

There’s a virtual trackball implementation in the examples directory (look for trackball.c).