| 12345678910111213141516171819202122232425262728293031323334353637383940 |
- //********************************** Banshee Engine (www.banshee3d.com) **************************************************//
- //**************** Copyright (c) 2016 Marko Pintera ([email protected]). All rights reserved. **********************//
- #pragma once
- #include "BsFontPrerequisites.h"
- #include "Importer/BsSpecificImporter.h"
- #include "Importer/BsImporter.h"
- namespace bs
- {
- /** @addtogroup Font
- * @{
- */
- /** Importer implementation that handles font import by using the FreeType library. */
- class FontImporter : public SpecificImporter
- {
- public:
- FontImporter();
- virtual ~FontImporter();
- /** @copydoc SpecificImporter::isExtensionSupported */
- bool isExtensionSupported(const WString& ext) const override;
- /** @copydoc SpecificImporter::isMagicNumberSupported */
- bool isMagicNumberSupported(const UINT8* magicNumPtr, UINT32 numBytes) const override;
- /** @copydoc SpecificImporter::import */
- SPtr<Resource> import(const Path& filePath, SPtr<const ImportOptions> importOptions) override;
- /** @copydoc SpecificImporter::createImportOptions */
- SPtr<ImportOptions> createImportOptions() const override;
- private:
- Vector<WString> mExtensions;
- const static int MAXIMUM_TEXTURE_SIZE = 2048;
- };
- /** @} */
- }
|