I load a png file with an alpha channel using PxLoadImage and I try to
display it using PgDrawImage, but it does not work correctly.
The image is displayed, but where it should be transparent, it is opaque.
When I load the image, is use the PX_LOAD and PX_TRANSPARENT flags.
When I tried to call PgAlphaOn() before displaying the image, all I got was
a black square instead.
Must I call PgSetAlphaBlend??
If so, I do not know how to obtain the PgMap_t * required by
PgSetAlphaBlend (I do not want a global alpha). I wish to use the alpha
values stored in the png, but PxLoadImage returns a PhImage_t* and
PhImage_t contains a PgAlpha_t * but no PgMap_t*…
Thank you in advance for your help.