Browse Source

AnyImageImporter: support DDS files.

pull/205/head
Vladimír Vondruš 11 years ago
parent
commit
dd91a03229
  1. 2
      src/MagnumPlugins/AnyImageImporter/AnyImageImporter.cpp
  2. 2
      src/MagnumPlugins/AnyImageImporter/AnyImageImporter.h

2
src/MagnumPlugins/AnyImageImporter/AnyImageImporter.cpp

@ -54,6 +54,8 @@ void AnyImageImporter::doOpenFile(const std::string& filename) {
std::string plugin;
if(Utility::String::endsWith(filename, ".bmp"))
plugin = "BmpImporter";
if(Utility::String::endsWith(filename, ".dds"))
plugin = "DdsImporter";
else if(Utility::String::endsWith(filename, ".gif"))
plugin = "GifImporter";
else if(Utility::String::endsWith(filename, ".hdr"))

2
src/MagnumPlugins/AnyImageImporter/AnyImageImporter.h

@ -55,6 +55,8 @@ Detects file type based on file extension, loads corresponding plugin and then
tries to open the file with it. Supported formats:
- BMP (`*.bmp`), loaded with any plugin that provides `BmpImporter`
- DDS (`*.dds`), loaded with @ref DdsImporter or any other plugin that
provides it
- GIF (`*.gif`), loaded with any plugin that provides `GifImporter`
- HDR (`*.hdr`), loaded with any plugin that provides `HdrImporter`
- JPEG (`*.jpg`, `*.jpeg`), loaded with @ref JpegImporter or any other plugin

Loading…
Cancel
Save