I’m having some difficulty flipping truetype text; I’m trying to flip it both horizontally and vertically. I tried to put the drawString function with a glScaled between a PushMatrix() and a PopMatrix(), but I’m not having luck. Has anyone else flipped text?
Hmm i would do the same as you… What do you exactly write, and what is the result?
Well, this is what I’m doing at the moment, but i can’t seem to position the text wherever i’d like. not quite sure what the logic is behind placement:
glTranslated(0, 280, 0);
font2.drawString(someText, 0, 700);
glPixelZoom(-1.0f, -1.0f); // flip image horizontally & vertically
This is what i would do:
glTranslatef(100, 100, 0); //Here you move the text
glScalef(-1.0, -1.0, 1.0);
you are an angel! thank you!