Image loading and processing (for texture mapping)?

Hello all,

Excuse my ignorance, but where’s a good place to find image-loading routines (for TGA, BMP, etc.)? I’m using OpenGL in VisualC++ 6.0 with GLUT.

At you can find the file format specifications that for bmps is enough to write a routine… or you can use glaux to load a bitmap, like in nehe’s tutorials (

Or there’s the OpenIL image library. It can load most popular image formats.