Morglum
12-13-2001, 06:02 AM
Hi !
In my opengl app I use the mouse to let the user look in any direction. I use glutMotionFunc to achieve this. Unfortunately, this gives me only 1-pixel precision. I would like to get the mouse position *before* it is converted into screen coordinates. Do you know any API able to do this ? What do they use in games ?
Thanks, and sorry for the poorly opengl-related topic,
but an answer to this question might help many opengl programmers http://www.opengl.org/discussion_boards/ubb/wink.gif !
In my opengl app I use the mouse to let the user look in any direction. I use glutMotionFunc to achieve this. Unfortunately, this gives me only 1-pixel precision. I would like to get the mouse position *before* it is converted into screen coordinates. Do you know any API able to do this ? What do they use in games ?
Thanks, and sorry for the poorly opengl-related topic,
but an answer to this question might help many opengl programmers http://www.opengl.org/discussion_boards/ubb/wink.gif !