I'm implementing a simple font renderer in OpenGL and have a few questions regarding that
It basically loads an image with characters on them into an OpenGL texture
Is it better to have one big texture with all characters on it, or can I have one texture per character as well?
Using the big texture, I can't seem to figure out how to correctly draw a quad with one character from the texture on it.
Let's say the whole texture is 256 * 256, and each character is 16 * 16
I want to draw a quad which is 16 * 16 and map one character from the texture on it
I have tried glTexCoord2f()
but that only works with ranges from 0-1