Can anybody explain the use of ARB_window_pos to me.
If possible a code example :)
Thank you very much.
K
ARB_window_pos
Started by Asshen, Sep 17 2003 09:40 AM
5 replies to this topic
#1
Posted 17 September 2003 - 09:40 AM
#2
Posted 17 September 2003 - 06: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
you would use it like this
glWindowPos2fARB(x, y);
and then make a call to glBitmap or some other raster routine
If Prolog is the answer, what is the question ?
#4
Posted 17 September 2003 - 08: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.
Is it possible to use this extension to get the xyz coord from a xy window coord ?
Or vice-versa ?
Thanks.
#5
Posted 17 September 2003 - 11:33 PM
i don't think so...
If Prolog is the answer, what is the question ?
#6
Posted 18 September 2003 - 05:11 PM
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.
baldurk
He who knows not and knows that he knows not is ignorant. Teach him.
He who knows not and knows not that he knows not is a fool. Shun him.
He who knows not and knows that he knows not is ignorant. Teach him.
He who knows not and knows not that he knows not is a fool. Shun him.
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users












