Does anybody know how to read alpha channel information from a png file? I need my application to be able to create a greyscale 'transparency map' from an image but I can't work out how to get at the required data.
Loadimage seems to discard alpha information and loadtexture automatically scales images whose dimensions are not powers of two, so it seems I need to read straight from the file. Can anyone help?
Loadimage seems to discard alpha information and loadtexture automatically scales images whose dimensions are not powers of two, so it seems I need to read straight from the file. Can anyone help?