BsFBXPlugin.cpp 793 B

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