View Full Version : Font Texture format

02-10-2003, 03:22 PM
I'm curious as to how litle information can be used to display font textures in my GUI.

Currently I use GL_LUMINANCE_ALPHA with identical data in my greyscale and alpha channels. I must admin I use someone else's font file format so I have no idea s to why it's done this way.

Can I draw text with a GL_LUMINANCE only texture? If so do I need to do anything different?

Many thanks,


02-10-2003, 05:09 PM
I'm not sure about GL_LUMINANCE right now(depends on how you'll do the blending) but if you have identical components for luminance and alpha you might as well use GL_INTENSITY(wich Mark Kilgard uses in his font api (http://www.opengl.org/developers/code/mjktips/TexFont/TexFont.html) ) which is exactly what you need (i.e. lum. and alpah combined in one component)