views:

17

answers:

1

I have a colored texture work as a menu button. Sometimes I want to gray it out when it's disabled. How to do it without creating a new grayscaled texture? Can glBlendFunc do this for me? Thanks in advance.

A: 

To have a gray scale texture, you need to create such texture. For internal format set either luminance or intensity. See here for details : http://www.opengl.org/sdk/docs/man/xhtml/glTexImage2D.xml

VJo
actually I'm trying to make an texture change from grayscaled to colorized. I'm still looking for the best solution. Thanks for your information anyway.
Cuper Hector