0

Possible Duplicate:
Draw text in OpenGL ES (Android)

I'm developing a videogame in Android. For it, I'm using OpenGL-ES.

I have a question about showing text using OpenGL-ES. Is there any method to show test? Because if not, the only way it comes to my mind is having a image with all the alphabet and show text letter by letter, which could be really tough.

Any clue?

Community
  • 1
  • 1
Frion3L
  • 1,502
  • 4
  • 24
  • 34
  • I think some games do just this don't they, with a texture with all of the letters on it and map positions on that texture? – Yablargo Oct 26 '12 at 19:50

1 Answers1

2

No, there's no way to show text in OpenGLES, other than with texture mapped quads as you suggested.

I don't know the particulars of your application, but since you're using android don't forget that you can draw Android Views overtop of an OpenGL view, so depending on what kind of text you need it may make more sense to implement your UI with Android.

Tim
  • 35,413
  • 11
  • 95
  • 121
  • Oh wow. I thought there had to be an easier way... I'm developing a RPG game. So I wanted to use textbox like FF9 (like comics) – Frion3L Oct 26 '12 at 19:56
  • Unfortunately nope. For popup text boxes I think an Android Dialog popup would work well, but you can decide if that fits your game framework or not. – Tim Oct 26 '12 at 19:59