Jump to content


ARB_window_pos


5 replies to this topic

#1 Asshen

    New Member

  • Members
  • PipPip
  • 15 posts

Posted 17 September 2003 - 09:40 AM

Can anybody explain the use of ARB_window_pos to me.
If possible a code example :)

Thank you very much.
K

#2 anubis

    Senior Member

  • Members
  • PipPipPipPip
  • 2225 posts

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
If Prolog is the answer, what is the question ?

#3 baldurk

    Senior Member

  • Members
  • PipPipPipPip
  • 1057 posts

Posted 17 September 2003 - 06:59 PM

This might also help you.
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.

#4 Asshen

    New Member

  • Members
  • PipPip
  • 15 posts

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.

#5 anubis

    Senior Member

  • Members
  • PipPipPipPip
  • 2225 posts

Posted 17 September 2003 - 11:33 PM

i don't think so...
If Prolog is the answer, what is the question ?

#6 baldurk

    Senior Member

  • Members
  • PipPipPipPip
  • 1057 posts

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.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users