TextureBMP is sample C++ code illustrating the use of textures in OpenGL. It is intended to accompany the book 3D Computer Graphics: A mathematical approach with OpenGL, by S. Buss, Cambridge University Press, 2003. However, it can be used independently as well.
TextureBMP reads a texture map from a bitmap file (.bmp extension). Bitmap files can be created with many standard graphics editting programs, include the PC program Paint. These programs often allow coverting other file formats to bitmap images. The main program is in TextureMap.cpp. The C++ class RgbImage is used to read the image data from a bitmap file.
There are several options for downloading the files.
Things to look at: