Code for reading a .bmp file. Cut out from Jeff Molofee's texture mapping demo on the NeHe tutorial site (Tutorial 6). As ported to Linux/GLUT by Richard Campbell '99 Code and comments for adaptation to big endian/little endian systems Nina Amenta '04 To build the demo, type "make" To run the program, type "showBMP". The program should read in "cow.bmp" and display it in a glut window. If it does not work for you at home because it has trouble reading in the image (ie it thinks the size is huge), it could be that your machine is little-endian while the machines in the lab are big-endian (or visa versa, I'm not sure). Anyway, look at the comments in readBMP.c and it should indicate how to fix the problem.