Universal (ie - glut) bitmap loader for TextureMapping


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.

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.

Thanks! I’ll check it out.

This topic was automatically closed 183 days after the last reply. New replies are no longer allowed.