[SDL] png transparency in testgl.c from sdl package

image28 image28 at slingshot.co.nz
Sun Dec 12 19:13:37 PST 2010


changing the line glColor4ub(0,0,0,255); to glColor4ub(0,0,0,128); makes all images 50% transparent. for some reason it is using the colour setting from that line instead of the individual pixels colour in the texture.




-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20101212/ab0d161c/attachment-0008.htm>


More information about the SDL mailing list