View Full Version : ARB_window_pos
Asshen
09-17-2003, 03:40 AM
Can anybody explain the use of ARB_window_pos to me.
If possible a code example :)
Thank you very much.
K
anubis
09-17-2003, 12:40 PM
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
glWindowPos2fARB(x, y);
and then make a call to glBitmap or some other raster routine
baldurk
09-17-2003, 12:59 PM
This (http://oss.sgi.com/projects/ogl-sample/registry/ARB/window_pos.txt) might also help you.
Asshen
09-17-2003, 02:04 PM
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 ?
Thanks.
anubis
09-17-2003, 05:33 PM
i don't think so...
baldurk
09-18-2003, 11:11 AM
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.
vBulletin, Copyright ©2000-2009, Jelsoft Enterprises Ltd.