Re: [PyOpenGL-Users] glRasterPos2f...
Brought to you by:
mcfletch
From: gabor <ga...@re...> - 2002-10-23 22:40:04
|
On Wed, 2002-10-23 at 22:56, Jack Jansen wrote: >=20 > On woensdag, oktober 23, 2002, at 03:20 , gabor wrote: >=20 > > 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? >=20 > I think I would do pushmatrix() and then a gluOrtho2D(). Make=20 > sure you push the right matrix, though. >=20 > 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 bye, gabor > -- > - Jack Jansen <Jac...@or...> =20 > http://www.cwi.nl/~jack - > - If I can't dance I don't want to be part of your revolution --=20 > Emma Goldman - --=20 listening to Paul van Dyk - Ministry Of Sound Session Live |