How to use Trancparency with openGL

Started by technik3k, August 30, 2015, 01:34:37

Previous topic - Next topic

technik3k

I have an image I made with gimp that has a trancparent background. How do I render the tranceparent part with openGL.

technik3k

I figured it out. I used
glEnable(GL_BLEND);
glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);