On Wed, 2002-10-23 at 22:56, Jack Jansen wrote:
> On woensdag, oktober 23, 2002, at 03:20 , gabor wrote:
> > hi,
> > i tried to write some text out...
> > so i used glRasterPos2f to set the position...
> > but glRasterPos2f doesn't seem to work in window-space...,
> > i mean glRasterPos2f(0,0) is not the top-left ( or bottom-left)
> > corner...
> > is there a way to get a pixel-correct positioning of text?
> I think I would do pushmatrix() and then a gluOrtho2D(). Make=20
> sure you push the right matrix, though.
> And knowing gl there's probably a gazillion other options that work:-)
i fount a way too.....
i pushed my proj+modelview matrix, then loaded them to identity...
this way the (top,left) corner way always -1,-1 ( or -1,+1? ) etc...
then using the width/height of the window, i could calculate the
required positions :-)
but i think i'll switch to that gluOrtho2D
> - Jack Jansen <Jack.Jansen@...> =20
> http://www.cwi.nl/~jack -
> - If I can't dance I don't want to be part of your revolution --=20
> Emma Goldman -
listening to Paul van Dyk - Ministry Of Sound Session Live