load transparent 2d image

Feb 27, 2013 at 7:22 AM
Hello,

Can I load transparent image like... png, gif. ?

Tanks for your help.
Coordinator
Feb 27, 2013 at 8:45 AM
Yes you can indeed, but you must also make sure that you set up the OpenGL blending properly:

http://stackoverflow.com/questions/5206373/opengl-texture-transparency-doesnt-work

This thread has details. So yes, SGL will load the png correctly with transparency, but its the client callers responsibility to make sure that they set the blending up as they want it :)
Feb 27, 2013 at 1:49 PM
Thanks to dwmkerr!!!