[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

GLUT question



What is the smart way to write a phrase of 3 words, each of a different color?
It seems that fonts (bitmaps) change color only after a glRasterPos call... 
but what about changing color without changing position?
Also, i tried to glGet(GL_CURRENT_RASTER_POSITION, vector), change color, and 
then feed back 'vector' to glRasterPos, but it appears that, while glGet(...) 
returns window coordinates, glRasterPos wants space coordinates, so i have to 
make the translation... well... i can't belive there is no smarter way...

Thanx,
Francesco Orsenigo