| 123456789101112131415161718192021222324252627282930313233343536373839 |
- // Copyright (C) 2009-2021, Panagiotis Christopoulos Charitos and contributors.
- // All rights reserved.
- // Code licensed under the BSD License.
- // http://www.anki3d.org/LICENSE
- #include <AnKi/Importer/Common.h>
- #include <AnKi/Util/String.h>
- #include <AnKi/Util/WeakArray.h>
- #include <AnKi/Resource/ImageBinary.h>
- namespace anki {
- /// @addtogroup importer
- /// @{
- /// Config for importImage().
- /// @relates importImage.
- class ImageImporterConfig
- {
- public:
- GenericMemoryPoolAllocator<U8> m_allocator;
- ConstWeakArray<CString> m_inputFilenames;
- CString m_outFilename;
- ImageBinaryType m_type = ImageBinaryType::_2D;
- ImageBinaryDataCompression m_compressions = ImageBinaryDataCompression::S3TC;
- U32 m_minMipmapDimension = 4;
- U32 m_mipmapCount = MAX_U32;
- Bool m_noAlpha = true;
- CString m_tempDirectory;
- CString m_compressonatorPath; ///< Optional.
- CString m_astcencPath; ///< Optional.
- UVec2 m_astcBlockSize = UVec2(8u);
- };
- /// Converts images to AnKi's specific format.
- ANKI_USE_RESULT Error importImage(const ImageImporterConfig& config);
- /// @}
- } // end namespace anki
|