I\'m learning OpenGL in C++ using NeHe tutorials, but I\'m trying to do them with FreeImage library, instead of Glaux or SOIL. The good point I see in using FreeImage is thar it
To extend the previous answer:
FreeImage_GetBits()
function will return a pointer to the data stored in a FreeImage-internal format. Where each scanline is usually aligned to a 4-bytes boundary. This will work fine while you have power-of-two textures. However, for NPOT textures you will need to specify the correct unpack alignment for OpenGL.
There is another function in FreeImage which will allow you to get unaligned tightly packed array of pixels: FreeImage_ConvertToRawBits()