DDS image importer plugin.
Supports DirectDraw Surface images (
*.dds) in the following formats:
- DDS uncompressed RGB, RGBA, BGR, BGRA, grayscale
- DDS compressed DXT1, DXT3, DXT5
- DDS DXT10 with the following DXGI formats (
TYPELESSformats are loaded as either PixelType::
UnsignedByte, PixelType:: UnsignedShort or PixelType:: UnsignedInt):
R8G8B8A8_(TYPELESS|UINT|SINT|UNORM|UNORM_SRGB|SNORM)(Notion of sRGB is discarded)
A8_UNORM(Loaded as PixelFormat::
This plugin depends on the Trade library and is built if
WITH_DDSIMPORTER is enabled when building Magnum Plugins. To use as a dynamic plugin, you need to load the
"DdsImporter" plugin from
MAGNUM_PLUGINS_IMPORTER_DIR. To use as a static plugin or as a dependency of another plugin with CMake, you need to request the
DdsImporter component of the
MagnumPlugins package in CMake and link to the
MagnumPlugins::DdsImporter target. See Downloading and building plugins, Plugin usage with CMake and Loading and using plugins for more information.
The images are imported with PixelType::
Note: Mipmaps are currently imported under separate image data ids. You may access them via image2D(UnsignedInt)/image3D(UnsignedInt) which will return the n-th mip, a bigger n indicating a smaller mip.