i am currently using a function but it depends on glaux.h so i can’t use that on linux.
also it works only with bmp files (and if i remember correctly it only supports square images). anyone knows an easy method for loading and using jpg and transparent png files?
There is a number of free libraries like libSDL, or GdkPixbuf you can use (my lil’ crappy GdkPixbuf spoonfeeding example follows):
you can roll your own one (or google and steal one )
i found a library called devIL, it seems fine to me.