gbadev.org forum archive

This is a read-only mirror of the content originally found on forum.gbadev.org (now offline), salvaged from Wayback machine copies. A new forum can be found here.

Graphics > new png2gba tool

#175738 - erana_ - Thu Jan 27, 2011 3:06 pm

Hi,

I've made a small tool to convert png files to a simple C function which blits
pixels. Here it is: http://soft.vub.ac.be/~jceuppen/games/gameboyadvance/png2gba.c

You have to modify the width and height to the one of your png pic.

It is based on the libpng example. License is libpng.

Love,
erana

#175740 - ant512 - Thu Jan 27, 2011 3:42 pm

Looks like a neat tool, but aaaarrrghghghg - so much code commented out and left in place! If there's a reason for it to be there, put a comment explaining why it has been commented out and what happens when it is re-enabled. If there's no reason for it to be there, why is it there?

#175741 - erana_ - Thu Jan 27, 2011 3:58 pm

I've cleaned it up. The code is easier to read now.