Skip to main content
gamedev.net
🔒 Locked

Draw custom Alpha buffer?

Started by GaboonViper Jul 30, 2005 at 5:26 AM 1 replies 400+ views
Original Post
GaboonViper
GaboonViper
I'm working on a opengl-based gui system. I'm now trying to draw text. I realize there is a ** about this in the faq, but my approach is a bit different. I have my own custom buffer of glyphs(GL_BYTE *) that I want to use. I have considered using glDrawPixels for this, but the problem is that, according to the opengl reference, if I use GL_ALPHA it sets the R,G and B components to 0.0. I want this to be a custom color.
Gorax
Gorax
I think you should take a look at GL_RGBA, instead of GL_ALPHA.
trippytarka
trippytarka
GL_LUMINANCE_ALPHA is what you need IMHO. See this http://www.opengl.org/resources/code/rendering/mjktips/TexFont/TexFont.html

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.