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 "BsFBXPrerequisites.h" |
4 | #include "BsFBXImporter.h" |
5 | #include "Importer/BsImporter.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 = "FBXImporter"; |
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 | FBXImporter* importer = bs_new<FBXImporter>(); |
20 | Importer::instance()._registerAssetImporter(importer); |
21 | |
22 | return nullptr; |
23 | } |
24 | } |