PDA

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



05-26-2001, 07: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-27-2001, 12:40 AM
Hi,

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

05-27-2001, 12:43 AM
Or for a simple jpeg loading routine: www.robals.f2s.com/easyjpeg/ (http://www.robals.f2s.com/easyjpeg/)

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