1

I need help on understanding the workflow for rendering text in opengl es using a texture atlas. This is for an iphone game.

I've read this already:

Is there a decent OpenGL text drawing library for the iPhone SDK?

What tools do I use to generate the texture atlas image? Do I need freetype for this part? What file format should the image be?

In my iphone code...besides the texture atlas image, what else do I need to correctly render the text? Does freetype need to be included in my iphone source code? Am I generating an XML file with the glyph data as it relates to my texture atlas so that I don't have to load freetype into my iphone source code?

Community
  • 1
  • 1
Ryan
  • 5,883
  • 13
  • 56
  • 93

1 Answers1

0

There are many ready solutions in open-source engines.

I use .fnt format. It has texture atlas with prerendered chars and configuration file with mapping info.

For example it is integrated in Cocos2d:

brigadir
  • 6,874
  • 6
  • 46
  • 81