BsFontPlugin.cpp 920 B

1234567891011121314151617181920212223242526272829
  1. //__________________________ Banshee Project - A modern game development toolkit _________________________________//
  2. //_____________________________________ www.banshee-project.com __________________________________________________//
  3. //________________________ Copyright (c) 2014 Marko Pintera. All rights reserved. ________________________________//
  4. #include "BsFontPrerequisites.h"
  5. #include "BsImporter.h"
  6. #include "BsFontImporter.h"
  7. namespace BansheeEngine
  8. {
  9. /**
  10. * @brief Returns a name of the plugin.
  11. */
  12. extern "C" BS_FONT_EXPORT const String& getPluginName()
  13. {
  14. static String pluginName = "FontImporter";
  15. return pluginName;
  16. }
  17. /**
  18. * @brief Entry point to the plugin. Called by the engine when the plugin is loaded.
  19. */
  20. extern "C" BS_FONT_EXPORT void* loadPlugin()
  21. {
  22. FontImporter* importer = bs_new<FontImporter>();
  23. Importer::instance()._registerAssetImporter(importer);
  24. return nullptr;
  25. }
  26. }