• Advertisement
Sign in to follow this  

how could i use glBlend() when i draw a button?

This topic is 4186 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

i do not know how to use the combination of glBlend's parameters. i want to draw a button onto screen, how can i make the button-picture's backround transparency?

Share this post


Link to post
Share on other sites
Advertisement
use GL_SRC_ALPHA and GL_ONE_MINUS_SRC_ALPHA. Then make sure when you specify your color that you specify the version which takes the alpha value. for example glColor4f

Share this post


Link to post
Share on other sites
u means that i must use the glColor4f() set the alpha value?
let me try it.


Is there any tutorials about Blend? i have read the NeHe's tutorial,but i still feel some diffclut ,because there are so many combination of the parameters.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement