Developer's Image Library (DevIL) is a cross-platform image library utilizing a simple syntax to load, save, convert, manipulate, filter, and display a variety of images with ease. It is highly portable and has been ported to several platforms.
warning: comparison of array 'Header.MipLengths' equal to a null pointer is always false [-Wtautological-pointer-compare]
if (Header.MipOffsets[Mip] == 0 || Header.MipLengths == 0) // No more mipmaps in the file.
~~~~~~~^~~~~~~~~~ ~
Fixes compile warning: