5 #include "PluginManager.h" 11 const char* OCCPlugin_DLL_FILE_PATH =
"OCCPlugin_d.dll";
13 const char* OCCPlugin_DLL_FILE_PATH =
"OCCPlugin.dll";
27 DLLPlugInEntity* pPluginEntity = CGlobals::GetPluginManager()->GetPluginEntity(OCCPlugin_DLL_FILE_PATH);
28 if(pPluginEntity == 0)
30 pPluginEntity = ParaEngine::CGlobals::GetPluginManager()->
LoadDLL(
"", OCCPlugin_DLL_FILE_PATH);
33 if(pPluginEntity != 0)
39 if(pClassDesc && (strcmp(pClassDesc->
ClassName(),
"ICadModelImporter") == 0))
int GetNumberOfClasses()
return the number of plugin classes inside the DLL
Definition: PluginManager.cpp:149
different physics engine has different winding order.
Definition: EventBinding.h:32
Definition: CadImporterFactory.h:16
Definition: ICadModelImporter.h:50
virtual void * Create(bool loading=false)=0
return a pointer to an instance of the class.When the system needs to delete an instance of a plugin ...
DLLPlugInEntity * LoadDLL(const string &sIdentifier, const string &fileName)
Load a DLL at the given path [thread safe].
Definition: PluginManager.cpp:48
virtual const char * ClassName()=0
class name
a DLL plug-in loaded explicitly at runtime.
Definition: PluginManager.h:39
ClassDescriptor * GetClassDescriptor(int i)
The plugin must provide the system with a way to retrieve the Class Descriptors defined by the plugin...
Definition: PluginManager.cpp:136
System keeps a list of the DLL's found on startup.
Definition: PluginAPI.h:61