Mouse Position

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??? :slight_smile:

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??? :slight_smile:

Thanx a lot!!!