PDA

View Full Version : Getting the mouse coords



iNsaNEiVaN
01-19-2002, 03:50 PM
I dont want to use GLUT. How do I get the mouse coordinates?

Furrage
01-20-2002, 05:58 AM
In the 3D world? Use gluUnproject(). It takes the mouse position in windows and converts it to a position in 3D world.

An example can be found at the end of chapter 3 of the OpenGL redbook.

DFrey
01-20-2002, 06:45 AM
If you are asking how to actually get the values of the mouse position, it depends upon your OS.