I'm able to annotate OpenGL graphics using the following function.
void
drawstr(GLdouble x, GLdouble y, GLdouble z, const char* s,
GLvoid *font_style){
const char *p = s;
glRasterPos3d(x, y, z);
for (; *p; p++){
glutBitmapCharacter(font_style, *p);
}
}
glRasterPos3d appears to position appropriately according to the current
value of MODELVIEW_MATRIX.
But I now want to write three rows of characters (the top three rows of
the modelview matrix in fact) rather than just one.
Any suggestions as to how to position the second and third rows?
For what it's worth, I'm using:
GLvoid *font_style = GLUT_BITMAP_9_BY_15;
I have read about glWindowPos, but it doesn't seem to help.
TIA,
Jon C.


|