PDA

View Full Version : Pick up coordinates when Mouse clicked



Mat
05-02-2002, 10:45 PM
Hi,

I would like pick up the coordinates where the user clicked with the mouse in a GLAnimCanvas... But this coordinates would not be the position in the window size but the position in my system of coordinates...

Do you know how I can do that ??

Thanks a lot
Mat

mikael_aronsson
05-02-2002, 10:48 PM
Hi !

The gluProject and gluUnproject functions convert between 2D and 3D coordinates

Mikael