PDA

View Full Version : universal (ie - glut) bitmap loader for TextureMapping



hakko
11-27-2001, 03:40 PM
Hi,

Is there some code (in C), that'll read a 24bit BMP file (which I have Saved-As BMP in Photoshop(win98) from a jpeg) so I can use it as a texture? I need code that'll work on linux and win98 (hence I am already using glut). The code has to be from glut or just pure C, encapsulated,reusable, etc.

Greatly appreciate any help, cheers.

11-27-2001, 05:58 PM
Some of the GLUT ports of the NeHe lessons has a simple BMP loader. Other formats like TGA is more popular since they support a alpha channel.

hakko
11-28-2001, 02:15 PM
Thanks! I'll check it out.