asshen at September 17th, 2003 05:40 — #1
Can anybody explain the use of ARB_window_pos to me.
If possible a code example
Thank you very much.
anubis at September 17th, 2003 14:40 — #2
i think this extension let's you specify a render position directly in window coordinates bypassing the modelview and projection matrix... i think clipping also gets disabled
you would use it like this
and then make a call to glBitmap or some other raster routine
baldurk at September 17th, 2003 14:59 — #3
This might also help you.
asshen at September 17th, 2003 16:04 — #4
Ok, I read through the spec very fast
Is it possible to use this extension to get the xyz coord from a xy window coord ?
Or vice-versa ?
anubis at September 17th, 2003 19:33 — #5
baldurk at September 18th, 2003 13:11 — #6
For that, you need to choose what you want. If you want to get the xyz value of the pixel over which the mouse is, you need picking. If you just need to convert from window xy -> opengl xy then you just need to look at gluProject and gluUnProject.