|
|
|
@ -43,10 +43,17 @@ |
|
|
|
namespace Magnum { namespace Trade { |
|
|
|
namespace Magnum { namespace Trade { |
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
@brief TGA image importer |
|
|
|
@brief TGA importer plugin |
|
|
|
|
|
|
|
|
|
|
|
Supports uncompressed BGR, BGRA or grayscale images with 8 bits per channel. |
|
|
|
Supports uncompressed BGR, BGRA or grayscale images with 8 bits per channel. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
This plugin is built if `WITH_TGAIMPORTER` is enabled in CMake. To use dynamic |
|
|
|
|
|
|
|
plugin, you need to load `%TgaImporter` plugin from `importers/` subdirectory |
|
|
|
|
|
|
|
of your plugin dir. To use static plugin or use this as a dependency of another |
|
|
|
|
|
|
|
plugin, you need to request `%TgaImporter` component in CMake and link to |
|
|
|
|
|
|
|
`${MAGNUMPLUGINS_TGAIMPORTER_LIBRARIES}`. See @ref building-plugins and |
|
|
|
|
|
|
|
@ref cmake-plugins for more information. |
|
|
|
|
|
|
|
|
|
|
|
The images are imported with @ref ColorType::UnsignedByte and @ref ColorFormat::BGR, |
|
|
|
The images are imported with @ref ColorType::UnsignedByte and @ref ColorFormat::BGR, |
|
|
|
@ref ColorFormat::BGRA or @ref ColorFormat::Red, respectively. Grayscale images |
|
|
|
@ref ColorFormat::BGRA or @ref ColorFormat::Red, respectively. Grayscale images |
|
|
|
require extension @extension{ARB,texture_rg}. |
|
|
|
require extension @extension{ARB,texture_rg}. |
|
|
|
|