Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

easy image format to write loader for?

Name: Anonymous 2007-01-08 23:52

I've been going through some image format possibilities for my game and I can't decide on a commonly-used image format for my game's data.

Targa is a tried-and-true format but it has a lot of different standard-supported options of storing pixels such that I'd have to write like 8 or 9 functions to load and translate all the different ways a .TGA file's image can be stored.  Not fun.

.jpg and .png are a pain in the butt, even more mathematically annoying with their use of compression and all.  .gif is just not an option.

Buh buh buh... are there no super-simple image formats out there whose header specifications just look like this:

int width
int height
and then an array of guaranteed 24-bit {a,r,g,b} quadruples

Name: Anonymous 2007-01-12 16:05

Free cookie goes out to the first person who can guess correctly why keeping library dependencies to a minimum is a good thing, both in terms of practicality in developing your project as well as in terms of maintaining it.
you mean besides the obvious security reasons and the fact that the library developer could change the way the library works and make your app not work with newer versions of the library (hello openssl)?

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List