cdave1 / ftgles

A truetype font rendering library for OpenGL ES on iOS devices (iPad and iPhone)
http://cdave1.github.io/ftgles/
MIT License
142 stars 36 forks source link

Maintain backward compatibility so we can use your fantastic library on OSX as well as iPhone #3

Open maverickmind opened 14 years ago

maverickmind commented 14 years ago

Hi, I just added two new targets to my downloaded version of the library, one for FTGL OSX and one for FreeType OSX.

Both use your openGLES glue layer in order to render out fonts when compiling for OSX. It took about 30 mins and is very useful since your code renders much faster than the original glBegin/glEnd render code.

I was wondering if you'd like to add this support at all? ;)

cdave1 commented 14 years ago

Good idea! I have something similar to what you describe lying around on my local repo, but it is a fork of ftgles and has some slight differences to the ftgles code. The main difference is that the ftgles library uses a GLUT replacement called iGLU, whereas the OSX build simply uses the standard GLUT library. There are also a few other small differences -- texture memory usage being the main one. I wanted to maintain separate versions of the library, rather than cluttering up the ftgl/es code with #ifdefs.

I might commit this in the next week or two when I get a few hours.