| 1 | //************************************ bs::framework - Copyright 2018 Marko Pintera **************************************// |
|---|---|
| 2 | //*********** Licensed under the MIT license. See LICENSE.md for full terms. This notice is not to be removed. ***********// |
| 3 | #include "BsFontPrerequisites.h" |
| 4 | #include "Importer/BsImporter.h" |
| 5 | #include "BsFontImporter.h" |
| 6 | |
| 7 | namespace bs |
| 8 | { |
| 9 | /** Returns a name of the plugin. */ |
| 10 | extern "C"BS_PLUGIN_EXPORT const char* getPluginName() |
| 11 | { |
| 12 | static const char* pluginName = "FontImporter"; |
| 13 | return pluginName; |
| 14 | } |
| 15 | |
| 16 | /** Entry point to the plugin. Called by the engine when the plugin is loaded. */ |
| 17 | extern "C"BS_PLUGIN_EXPORT void* loadPlugin() |
| 18 | { |
| 19 | FontImporter* importer = bs_new<FontImporter>(); |
| 20 | Importer::instance()._registerAssetImporter(importer); |
| 21 | |
| 22 | return nullptr; |
| 23 | } |
| 24 | } |