So i have been searching and searching the internet looking over Bitmapped fonts tutorials for writing text with OpenGL.
All i want it to do is show an integer (my frames per second) in one corner.
And then at 1 or 2 other places on the screen just another integer that is 2 or 3 digits big.
I don't care for changing and creating loads of fonts or changing the font.
I just want to display the integers on the screen without having a frames drop (apparently using a UILabel will cause that?)
If anyone can point me in the right way of a tutorial that is useful (or provide code samples) and doesnt bother with how you can change fonts or one that is just simple to use, i have tried two or three and both do it quite differently from one another but requries me to change most of my code as well as use external programs to download fonts (kinda pointless for me)
So i have been searching and searching the internet looking over Bitmapped fonts tutorials for writing text with OpenGL.
All i want it to do is show an integer (my frames per second) in one corner.
And then at 1 or 2 other places on the screen just another integer that is 2 or 3 digits big.
I don't care for changing and creating loads of fonts or changing the font.
I just want to display the integers on the screen without having a frames drop (apparently using a UILabel will cause that?)
If anyone can point me in the right way of a tutorial that is useful (or provide code samples) and doesnt bother with how you can change fonts or one that is just simple to use, i have tried two or three and both do it quite differently from one another but requries me to change most of my code as well as use external programs to download fonts (kinda pointless for me)
You could try the Texture2D class from the CrashLanding project. I've only used to to draw textures so far, but it has a convenient way to render strings too.
If you don't have the Texture2D class, PM me with your email adress and I'll send you over the CrashLanding project folder. I guess Apple pulled it off the example's website a while ago.
You could try the Texture2D class from the CrashLanding project. I've only used to to draw textures so far, but it has a convenient way to render strings too.
If you don't have the Texture2D class, PM me with your email adress and I'll send you over the CrashLanding project folder. I guess Apple pulled it off the example's website a while ago.
Hey i don't really want to use the Texture2D class.
If i do use it though, will apply still approve my app?
Only reason i ask is because the tutorials: iPhone opengl es tutorial series ?
the author mentioned two books he has seen use apple undocumented code, and that won't let your apps be approved.
I don't know if he was refering to that but if he is then don't want to use something that wont get approved.
Hey i don't really want to use the Texture2D class.
If i do use it though, will apply still approve my app?
Only reason i ask is because the tutorials: iPhone opengl es tutorial series ?
the author mentioned two books he has seen use apple undocumented code, and that won't let your apps be approved.
I don't know if he was refering to that but if he is then don't want to use something that wont get approved.
Now you got me worried Why shouldn't Apple approve apps, using the Texture2D class? Is there something wrong with it? No, I guess you missunderstood that. The Texture2D class was originally written by Apple and in my opinion it's a great way to get fast 2D drawing results in openGL. I've successfully tested it on various versions of the SDK and it works just fine.
No worries, using this class won't get you into any trouble.