// Copyright (C) 2009-2021, Panagiotis Christopoulos Charitos and contributors. // All rights reserved. // Code licensed under the BSD License. // http://www.anki3d.org/LICENSE #include #include #include #include namespace anki { /// @addtogroup importer /// @{ /// Config for importImage(). /// @relates importImage. class ImageImporterConfig { public: GenericMemoryPoolAllocator m_allocator; ConstWeakArray 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