PDA

View Full Version : Pick & drop the object(premitive) with mouse click



SANTOS_GL
04-20-2009, 10:53 AM
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