Advertisement

Find OpenGl Co-ordinates with Mouse

Started by April 01, 2004 03:43 AM
1 comment, last by Ructions 20 years, 11 months ago
I was wondering how do you find the opengl co-ordinates with the mouse as i have text on my screen and when the mouse is over it i want it to highlight thanks in advance ructions
Well there is this little func called gluUnProject.

I don''t know if this is what your looking for, but if it''s not then why not try to create a ogl cursor(a few polygons in the shape of an arrow) and move it on ogl space instead of screen space.

---------------------------------
For an overdose of l33tness, flashbang.nu
Advertisement
ive been looking to do the exact same kinda thing. i have some text from RasterPos2f calls and some 2d Objects on the screen called by glVertex calls and have been wondering how to match up those coords with the mouse coords.. so far no luck.. gluProject i guess works but have no idea how to work this for this particular problem. i am using glut w/win32 console not win32 for windows stuff.
heh

This topic is closed to new replies.

Advertisement