Jump to content
  • Advertisement
Sign in to follow this  
Jamarr

inverting text possible with wglUseFontBitmap?

This topic is 3502 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Right now I'm using wglUseFontBitmap() to generate displaylists that I can use to render text on screen. The problem is that I'm using a third-party gui system that renders textures in window coords (as opposed to cartesian); it's heavily based on textured mapped images so in order to perform my own drawing I have to use RTT to render a scene inside one of the widgets. The probably is that my scene is rendered upside down. Well, if I invert the projection matrix (glOrtho(0,w,h,0,-1,1)) when rendering my scene it is correctly inverted but none of my text is. I also tried using glPixelZoom() and glScalef() to invert the y-axis but it had absolutely no affect on the text/displaylists. Am I missing something or is it impossible to invert text/displaylists generated via wglUseFontBitmaps? I may just go ahead and move to using FreeType2 where I believe you can setup your own displaylists for character rendering? Thanks.

Share this post


Link to post
Share on other sites
Advertisement
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!