orangeduck / Corange

Pure C Game Engine
http://www.youtube.com/watch?v=482GxqTWXtA
Other
1.78k stars 199 forks source link

PNG support #54

Open EmmanuelMess opened 4 years ago

EmmanuelMess commented 4 years ago

Is png a format the developer wishes to support? I've had to add a handler for pngs that uses libspng, I can create a PR to add it to the main project.

orangeduck commented 4 years ago

For PNG support the main issue is this: it adds another dependency. TGA is about the only format which you can parse yourself without adding an additional library dependency. My recommendation if you want PNG support would be to use SDL_Image (which supports loading PNG as well as lots of other file formats) and add another file handler in your own game that is using Corange. I remember doing that myself for various small projects