Adding PNG support to Osiva

People have been asking for PNG support for years.

We need a simple/small/fast  PNG decoder for Osiva. The standard libraries are not useful because they are too big;  Osiva has to stay pretty small. We will use http://lodev.org/lodepng/.

I have extended the examples in lodepng to paint the decoded image to a Windows window (instead of the built in SDL window). This example uses the unusably inefficient SetPixel() call, but it is just for  a sanity check. The code is at http://www.tristable.net/code/lodepng/.

Leave a Comment