BsRenderBeastPlugin.cpp 749 B

12345678910111213141516171819202122
  1. //********************************** Banshee Engine (www.banshee3d.com) **************************************************//
  2. //**************** Copyright (c) 2016 Marko Pintera ([email protected]). All rights reserved. **********************//
  3. #include "BsRenderBeastPrerequisites.h"
  4. #include "BsRenderBeastFactory.h"
  5. #include "Renderer/BsRendererManager.h"
  6. namespace bs
  7. {
  8. /** Returns a name of the plugin. */
  9. extern "C" BS_PLUGIN_EXPORT const char* getPluginName()
  10. {
  11. return SystemName;
  12. }
  13. /** Entry point to the plugin. Called by the engine when the plugin is loaded. */
  14. extern "C" BS_PLUGIN_EXPORT void* loadPlugin()
  15. {
  16. RendererManager::instance()._registerFactory(bs_shared_ptr_new<RenderBeastFactory>());
  17. return nullptr;
  18. }
  19. }