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 "BsFreeImgPrerequisites.h" |
4 | #include "BsFreeImgImporter.h" |
5 | |
6 | namespace bs |
7 | { |
8 | extern "C"BS_PLUGIN_EXPORT const char* getPluginName() |
9 | { |
10 | static const char* pluginName = "FreeImageImporter"; |
11 | return pluginName; |
12 | } |
13 | |
14 | extern "C"BS_PLUGIN_EXPORT void* loadPlugin() |
15 | { |
16 | FreeImgImporter* importer = bs_new<FreeImgImporter>(); |
17 | Importer::instance()._registerAssetImporter(importer); |
18 | |
19 | return nullptr; |
20 | } |
21 | } |