JohanJ - 2013-07-13


I would like to know how I would go by accessing DDS mipmaps. From what I understand, I need to use FreeImage_OpenMultiBitmap, like this:

FIMULTIBITMAP * mp = FreeImage_OpenMultiBitmap(FREE_IMAGE_FORMAT::FIF_DDS, assetPath.string().c_str(), true, true);
int numPages = FreeImage_GetPageCount(mp);

but numPages returns 0 on a perfectly valid DDS file (verified using another program). So what do I need to do to make it work?