PDA

View Full Version : loading textures? (on linux)?



taytay
03-29-2009, 04:28 PM
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?

ZbuffeR
03-30-2009, 01:42 AM
use libjpeg and libpng

glBug
03-30-2009, 02:56 AM
There is a number of free libraries like libSDL (http://www.libsdl.org), or GdkPixbuf you can use (my lil' crappy GdkPixbuf spoonfeeding example follows):
http://wiki.hacklberry.net/HelpOnOpenGl

OR

you can roll your own one (or google and steal one :D )

taytay
03-31-2009, 12:11 AM
i found a library called devIL, it seems fine to me.

thanks all