| 1234567891011121314151617181920212223242526272829 |
- //__________________________ Banshee Project - A modern game development toolkit _________________________________//
- //_____________________________________ www.banshee-project.com __________________________________________________//
- //________________________ Copyright (c) 2014 Marko Pintera. All rights reserved. ________________________________//
- #include "BsFontPrerequisites.h"
- #include "BsImporter.h"
- #include "BsFontImporter.h"
- namespace BansheeEngine
- {
- /**
- * @brief Returns a name of the plugin.
- */
- extern "C" BS_FONT_EXPORT const String& getPluginName()
- {
- static String pluginName = "FontImporter";
- return pluginName;
- }
- /**
- * @brief Entry point to the plugin. Called by the engine when the plugin is loaded.
- */
- extern "C" BS_FONT_EXPORT void* loadPlugin()
- {
- FontImporter* importer = bs_new<FontImporter>();
- Importer::instance()._registerAssetImporter(importer);
- return nullptr;
- }
- }
|