Browse Source

AnyImageConverter: Delegate .basis files to BasisImageConverter

Signed-off-by: Squareys <squareys@googlemail.com>
findsdl-include-root
Squareys 7 years ago committed by Vladimír Vondruš
parent
commit
b4ca71ef9b
  1. 2
      src/MagnumPlugins/AnyImageConverter/AnyImageConverter.cpp
  2. 6
      src/MagnumPlugins/AnyImageConverter/AnyImageConverter.h

2
src/MagnumPlugins/AnyImageConverter/AnyImageConverter.cpp

@ -54,6 +54,8 @@ bool AnyImageConverter::doExportToFile(const ImageView2D& image, const std::stri
std::string plugin; std::string plugin;
if(Utility::String::endsWith(normalized, ".bmp")) if(Utility::String::endsWith(normalized, ".bmp"))
plugin = "BmpImageConverter"; plugin = "BmpImageConverter";
else if(Utility::String::endsWith(normalized, ".basis"))
plugin = "BasisImageConverter";
else if(Utility::String::endsWith(normalized, ".exr")) else if(Utility::String::endsWith(normalized, ".exr"))
plugin = "OpenExrImageConverter"; plugin = "OpenExrImageConverter";
else if(Utility::String::endsWith(normalized, ".hdr")) else if(Utility::String::endsWith(normalized, ".hdr"))

6
src/MagnumPlugins/AnyImageConverter/AnyImageConverter.h

@ -66,10 +66,12 @@ target. See @ref building, @ref cmake and @ref plugins for more information.
Supported formats for uncompressed data: Supported formats for uncompressed data:
- OpenEXR (`*.exr`), converted with any plugin that provides - Basis Universal (`*.basis`), converted with @ref BasisImageConverter or any other
`OpenExrImageConverter` plugin that provides it
- Windows Bitmap (`*.bmp`), converted with any plugin that provides - Windows Bitmap (`*.bmp`), converted with any plugin that provides
`BmpImageConverter` `BmpImageConverter`
- OpenEXR (`*.exr`), converted with any plugin that provides
`OpenExrImageConverter`
- Radiance HDR (`*.hdr`), converted with any plugin that provides - Radiance HDR (`*.hdr`), converted with any plugin that provides
`HdrImageConverter` `HdrImageConverter`
- JPEG (`*.jpg`, `*.jpe`, `*.jpeg`), converted with @ref JpegImageConverter - JPEG (`*.jpg`, `*.jpe`, `*.jpeg`), converted with @ref JpegImageConverter

Loading…
Cancel
Save