This project is read-only.

load transparent 2d image

Feb 27, 2013 at 8:22 AM

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

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

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 2:49 PM
Thanks to dwmkerr!!!