Flipping FTGL glyphs - Printable Version
+- iDevGames Forums (http://www.idevgames.com/forums)
+-- Forum: Development Zone (/forum-3.html)
+--- Forum: Game Programming Fundamentals (/forum-7.html)
+--- Thread: Flipping FTGL glyphs (/thread-5185.html)
Flipping FTGL glyphs - Fenris - Aug 10, 2005 12: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?
Flipping FTGL glyphs - OneSadCookie - Aug 10, 2005 01: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...
Flipping FTGL glyphs - TomorrowPlusX - Aug 10, 2005 04: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.
RE: Flipping FTGL glyphs - mr5z - Mar 1, 2014 08:38 AM
Considering your origin is top-left of the window, how did you properly flipped the font? I cannot do it by just scaling the y to -1 because its translating up above the screen by the font height. I have your old problem, can you give the solution?
RE: Flipping FTGL glyphs - Fenris - Apr 22, 2014 09:17 PM
Wow, almost ten years later..!
I remember that I just bit the bullet and flipped the viewport the right way up.
Had to correct a few things in game code, but it worked out all right.
Sorry, no better idea than this; but flipping the texture matrix might be easier if you have your font code encapsulated well.
RE: Flipping FTGL glyphs - gatti - Jul 4, 2015 04:57 PM
Just looking at the original date stamp of this post, was it in relation to El Ballo?