BsFontPlugin.cpp 846 B

12345678910111213141516171819202122232425262728
  1. //********************************** Banshee Engine (www.banshee3d.com) **************************************************//
  2. //**************** Copyright (c) 2016 Marko Pintera ([email protected]). All rights reserved. **********************//
  3. #include "BsFontPrerequisites.h"
  4. #include "BsImporter.h"
  5. #include "BsFontImporter.h"
  6. namespace BansheeEngine
  7. {
  8. /**
  9. * @brief Returns a name of the plugin.
  10. */
  11. extern "C" BS_FONT_EXPORT const String& getPluginName()
  12. {
  13. static String pluginName = "FontImporter";
  14. return pluginName;
  15. }
  16. /**
  17. * @brief Entry point to the plugin. Called by the engine when the plugin is loaded.
  18. */
  19. extern "C" BS_FONT_EXPORT void* loadPlugin()
  20. {
  21. FontImporter* importer = bs_new<FontImporter>();
  22. Importer::instance()._registerAssetImporter(importer);
  23. return nullptr;
  24. }
  25. }