-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinitPlugin.cpp
33 lines (21 loc) · 880 Bytes
/
initPlugin.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#include <core/ComponentFactory.h>
#include <core/SystemFactory.h>
#include <core/PluginManager.h>
#include "CorotationalElasticFEM.h"
#include "PhysicsSystem.h"
using namespace SME::physics;
//Components registration
REGISTER_COMPONENT(CorotationalElasticFEM)
//Systems registration
REGISTER_SYSTEM(PhysicsSystem)
extern "C" bool initPlugin(const SME::core::PM_PluginManagerInfo &pmInfo, SME::core::PM_PluginInfo &pluginInfo);
bool initPlugin(const SME::core::PM_PluginManagerInfo &pmInfo, SME::core::PM_PluginInfo &pluginInfo)
{
//TODO check initialization
std::string report;
SME::core::ComponentFactory::get()->registerType("CorotationalElasticFEM", &create_CorotationalElasticFEM, report);
//Sistemas
SME::core::SystemFactory::get()->registerType("PhysicsSystem", &create_PhysicsSystem, report);
pluginInfo.name = "SMEPhysics";
return true;
}