PDA

View Full Version : Mouse Position



SeeDAreW
03-05-2002, 10:25 AM
Can Somebody show me how to find the mouse position in my project??? a.k.a I want to select objects with the mouse how the hell can I do that????????? :-)

nexusone
03-05-2002, 10:57 AM
glutMouseFunc to read a mouse click.
glutMotionFunc to read movement in a window when a button is pressed.
glutPassiveMotionFunc location of mouse when it is in the window.

A good example of picking a object with a mouse is at http://nehe.gamedev.net lesson 33.



Originally posted by SeeDAreW:
Can Somebody show me how to find the mouse position in my project??? a.k.a I want to select objects with the mouse how the hell can I do that????????? :-)

SeeDAreW
03-05-2002, 11:11 AM
Thanx a lot!!!