Pick & drop the object(premitive) with mouse click

Hi all,

Thanks for your valuable response for my previous posts.

Now help me to get this one. I have drawn cube using glutSolidCube(1); AT THE center, now i want the cube to follow the mouse click.

i.e if i click on any place, the cube should follow the click. or if i say “PICK” using menu selection, i should be able to pick the cube. and if i say “DROP” at some other place, it shoul occupie the new x,y place.

Thanks,
Santosh