PDA

View Full Version : texturing with .bmp, .jpg, .gif etc



05-26-2001, 06:37 PM
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

Leyder Dylan
05-26-2001, 11:40 PM
Hi,

Try OpenIL. www.openil.org (http://www.openil.org)

05-26-2001, 11:43 PM
Or for a simple jpeg loading routine: www.robals.f2s.com/easyjpeg/ (http://www.robals.f2s.com/easyjpeg/)

MrShoe
05-27-2001, 02:12 AM
Well, a simple .bmp loading routine is used in almost all of NeHe's tutorials. nehe.gamedev.net/opengl.asp