TGA importer plugin.
Supports Truevision TGA (
*.vst) BGR, BGRA or grayscale images with 8 bits per channel.
Additionally, if you're using Magnum as a CMake subproject, do the following:
set(WITH_TGAIMPORTER ON CACHE BOOL "" FORCE) add_subdirectory(magnum EXCLUDE_FROM_ALL) # So the dynamically loaded plugin gets built implicitly add_dependencies(your-app Magnum::TgaImporter)
To use as a static plugin or use this as a dependency of another plugin with CMake, you need to request the
TgaImporter component of the
Magnum package and link to the
find_package(Magnum REQUIRED TgaImporter) # ... target_link_libraries(your-app PRIVATE Magnum::TgaImporter)
The images are imported with PixelFormat::
1 if the data require it.
RLE compression is supported, paletted images are not.
- class AbstractImporter
- Base for importer plugins.