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