1 | //************************************ bs::framework - Copyright 2018 Marko Pintera **************************************// |
---|---|
2 | //*********** Licensed under the MIT license. See LICENSE.md for full terms. This notice is not to be removed. ***********// |
3 | #include "BsRenderBeastPrerequisites.h" |
4 | #include "BsRenderBeastFactory.h" |
5 | #include "Renderer/BsRendererManager.h" |
6 | |
7 | namespace bs |
8 | { |
9 | /** Returns a name of the plugin. */ |
10 | extern "C"BS_PLUGIN_EXPORT const char* getPluginName() |
11 | { |
12 | return RenderBeastFactory::SystemName; |
13 | } |
14 | |
15 | /** Entry point to the plugin. Called by the engine when the plugin is loaded. */ |
16 | extern "C"BS_PLUGIN_EXPORT void* loadPlugin() |
17 | { |
18 | RendererManager::instance()._registerFactory(bs_shared_ptr_new<RenderBeastFactory>()); |
19 | |
20 | return nullptr; |
21 | } |
22 | } |
23 |