Magnum::Trade::TgaImporter class

TGA importer plugin.

Supports Truevision TGA (*.tga, *.vda, *.icb, *.vst) uncompressed BGR, BGRA or grayscale images with 8 bits per channel.

This plugin depends on the Trade library and is built if WITH_TGAIMPORTER is enabled when building Magnum. To use as a dynamic plugin, you need to load the "TgaImporter" plugin from MAGNUM_PLUGINS_IMPORTER_DIR. 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 Magnum::TgaImporter target. See Downloading and building, Usage with CMake and Loading and using plugins for more information.

The images are imported with PixelFormat::RGB8Unorm, PixelFormat::RGBA8Unorm or PixelFormat::R8Unorm, respectively. Images are imported with default PixelStorage parameters except for alignment, which may be changed to 1 if the data require it.

Base classes

class AbstractImporter
Base for importer plugins.

Constructors, destructors, conversion operators

TgaImporter() explicit
Default constructor.
TgaImporter(PluginManager::AbstractManager& manager, const std::string& plugin) explicit
Plugin manager constructor.