texturing with .bmp, .jpg, .gif etc

anyone know where i can find some routines that’ll read in .bmp, .jpg, etc and process them into good texture data. i.e. returning me an unsigned char* ?

thanks

Hi,

Try OpenIL. www.openil.org

Or for a simple jpeg loading routine: www.robals.f2s.com/easyjpeg/

Well, a simple .bmp loading routine is used in almost all of NeHe’s tutorials. nehe.gamedev.net/opengl.asp