Objects rotate but text won't ?

I’m trying to rotate some text but it refuses to co-operate.

When I draw a line in the “rotate text” section of code the line rotates but the text stays put.

Here is the code :

glPushMatrix;

glRotatef(30,0,0,1);

glBegin(GL_LINE_STRIP);
glVertex2f(0,0);
glVertex2f(0.3,0);
glEnd;

glRasterPos2f(0, 0);

glPushAttrib(GL_LIST_BIT);
glListBase(FontBase - 32);
glCallLists(length(Text), GL_UNSIGNED_BYTE, PChar(Text));
glPopAttrib();

glPopMatrix;

Why does the line rotate but the text not?
What am I doing wrong?

Thanks
Paul

Judging from your glRasterPos() call, I think the characters in the display list are bitmaps. In that case there will be no rotation, as bitmaps are always drawn ‘upright’ in the same way (they are basically just copies of a pixel rectangle).

If you’d generate a texture with the font in it and draw it on triangels/quads, then the text could be rotated (and scaled).

HTH

Jean-Marc

Ah! Thanks for that insight.
Yes it’s a bitmap - I didn’t realise that OpenGL treats bitmaps differently.

Thanks
Paul