TGA image converter plugin.
This plugin depends on the Trade library and is built if
WITH_TGAIMAGECONVERTER is enabled when building Magnum. To use as a dynamic plugin, load
"TgaImageConverter" via Corrade::
Additionally, if you're using Magnum as a CMake subproject, do the following:
set(WITH_TGAIMAGECONVERTER ON CACHE BOOL "" FORCE) add_subdirectory(magnum EXCLUDE_FROM_ALL) # So the dynamically loaded plugin gets built implicitly add_dependencies(your-app Magnum::TgaImageConverter)
To use as a static plugin or as a dependency of another plugin with CMake, you need to request the
TgaImageConverter component of the
Magnum package and link to the
find_package(Magnum REQUIRED TgaImageConverter) # ... target_link_libraries(your-app PRIVATE Magnum::TgaImageConverter)
The output is always uncompressed. If you want to make use of RLE compression and have the files smaller, use the StbImageConverter plugin instead.
- class AbstractImageConverter
- Base for image converter plugins.