PDA

View Full Version : Flipping FTGL glyphs


Fenris
2005.08.10, 04:21 AM
After finally getting FTGL to work for me, I noticed that FTGLTextureFont:s render themselves upside down in my viewport. I could probably invert them by scaling my texture matrix by 1, -1, 1, but I'd rather not mess around with the GL state in that way, that much. I suppose that it would be possible to edit the FTGL itself, but before I embark on such a mission, I thought I'd ask if anyone has worked themselves around this in a more obvious way?

OneSadCookie
2005.08.10, 05:26 AM
Which way up is your viewport? OpenGL traditionally puts the origin in the lower left; I'd assume that that's what FTGL assumes.

Why do you feel that changing the texture matrix is such a major operation? You can push and pop it just like any other matrix...

TomorrowPlusX
2005.08.10, 08:59 AM
Are you rendering them in an ortho2d projection transform? I've never seen this happen in my code, but then, I've only used them in 2D overlays.