vprabhakar
10-17-2000, 07:43 AM
I am implementing a tooltip feature in my Windows-based OpenGL application. Basically, I want to display come context information when the mouse is moved over one of my OpenGL objects.
My problem is: my OpenGL objects are drawn using calls to vertex3Df, where the coordinates are in world (x,y,z) coordinates. In order to show the tooltip, I need to know what those coordinates map to on the screen.
Is there a conversion function I can call, which, given a vertex3D and whatever tranformation matrices are currently in use, will give me the on-screen x-y location to which that point is mapped?
Thanks,
Vinay Prabhakar
vprabhakar@flashpt.com
My problem is: my OpenGL objects are drawn using calls to vertex3Df, where the coordinates are in world (x,y,z) coordinates. In order to show the tooltip, I need to know what those coordinates map to on the screen.
Is there a conversion function I can call, which, given a vertex3D and whatever tranformation matrices are currently in use, will give me the on-screen x-y location to which that point is mapped?
Thanks,
Vinay Prabhakar
vprabhakar@flashpt.com