Find OpenGl Co-ordinates with Mouse
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
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
www.flashbang.se | www.thegeekstate.com | nehe.gamedev.net | glAux fix for lesson 6 | [twitter]thegeekstate[/twitter]
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
Popular Topics
Advertisement
Recommended Tutorials
Advertisement