Inny wrote:Aren't BMP and TGA simple enough that you can implement them yourself in Lua? here's the spec for bmp,
Yes, I've used uncompressed, top-down TGA for many applications, including palette images back in the VGA times. The only thing to watch out for is the BGR order rather than RGB.
BMP is a bit more complicated, it's especially picky about padding. The newest version supporting alpha is a mess.
Please add in upcoming versions a function that returns physical DPI of the screen from OS. This feature has substantial value for mobile games because of the way you interact with them. Remember to return values for both axes, they're usually same but that's not necessarily the case. No need to break perfectly functional algorithm by removing edge case handling just because edge cases are rare.