tags:

views:

25

answers:

1

Is there a simple way to get the x,y cursor location at any point with OpenGL without using glutPassiveMotionFunc() to track it? Thanks...

+2  A: 

No. OpenGL is not meant to give you such information. If you are using Windows, you can use GetCursorPos.

But I would suggest you to track it since it makes it cross platform. You will also need to use glutMotionFunc to track mouse position when a mouse button is pushed.

tibur