Whats the best way to display numbers on android with opengl using a spritesheet?
I like to display the number "294" using the spritesheet: http://i.stack.imgur.com/wv5Zh.png
|
Whats the best way to display numbers on android with opengl using a spritesheet? I like to display the number "294" using the spritesheet: http://i.stack.imgur.com/wv5Zh.png |
|||
|
|
|
I found what I was looking for.
In my code then I just can write normal text and I can get the ascii codes of each character to calculate where its position on the generated spritesheet. Here is a fragment of my used code where I get the acsii codes of my "text":
|
|||
|
|