Itch
02-22-2001, 10:43 AM
Hi,
this is really an ongoing thing from a Post a few days ago:
What I want to do is display text in location x,y on the screen. I've finally managed to get some text on the screen, but if I don't set the position then is moves across the bottom of the screen this disappears. If I do set the position, then nothing appears at all.
Here's the code:
char output[MAX_LINE];
float raster[4];
...
glGetFloatv(GL_CURRENT_RASTER_POSITION,raster);
glRasterPos4i(raster[0],raster[1],raster[2],raster[3]);
sprintf(output,"%f",raster[0]);
printString(output);
So without the glRasterPosXi the code works, leaving me with no control over the text's position. With the line, nothing appears at all.
thanks again folks
james
this is really an ongoing thing from a Post a few days ago:
What I want to do is display text in location x,y on the screen. I've finally managed to get some text on the screen, but if I don't set the position then is moves across the bottom of the screen this disappears. If I do set the position, then nothing appears at all.
Here's the code:
char output[MAX_LINE];
float raster[4];
...
glGetFloatv(GL_CURRENT_RASTER_POSITION,raster);
glRasterPos4i(raster[0],raster[1],raster[2],raster[3]);
sprintf(output,"%f",raster[0]);
printString(output);
So without the glRasterPosXi the code works, leaving me with no control over the text's position. With the line, nothing appears at all.
thanks again folks
james