Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

Access DDS mipmaps?

Help
JohanJ
2013-07-13
2013-07-13
  • JohanJ
    JohanJ
    2013-07-13

    Hello,

    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?