Cool! Will you also add support for PNG? I know you'd need to rebuild Allegro's DLL with PNG support and link it with libpng and zlib, but IMO it would be worth it as 32bit PNG images are significantly smaller than 32Bit TGA images.
Cool! Will you also add support for PNG? I know you'd need to rebuild Allegro's DLL with PNG support and link it with libpng and zlib, but IMO it would be worth it as 32bit PNG images are significantly smaller than 32Bit TGA images.
Allegro.pas 5 alpha 1 can load PNG files out-of-the-box. Just add unit al5image to the USES clause and call "al5image.al_init_image_addon;" procedure after initialising Allegro. Of course, as you said, your Allegro intallation must include PNG support.
I should complete the documentation, then Allegro.pas 5 should became the TRUNK and Allegro.pas 4 will became "legacy".
Last edited by Ñuño Martínez; 29-05-2013 at 11:29 AM.
No signature provided yet.
Can you make for v5 allegro compiled with PNG and without, for convenience? Or with PNG if it isn't feasible to include both.
Bookmarks