The factory used to create and destroy physics simulators.
More...
#include <murl_physics_i_factory.h>
The factory used to create and destroy physics simulators.
Use the Physics::IFactoryRegistry base interface for managing registered simulator classes.
◆ Init()
virtual Bool Murl::Physics::IFactory::Init |
( |
| ) |
|
|
pure virtual |
Initialize the factory.
- Returns
- true if successful.
◆ DeInit()
virtual Bool Murl::Physics::IFactory::DeInit |
( |
| ) |
|
|
pure virtual |
Deinitialize the factory.
- Returns
- true if successful.
◆ CreateDefaultSimulator()
virtual ISimulator* Murl::Physics::IFactory::CreateDefaultSimulator |
( |
| ) |
|
|
pure virtual |
Create a default physics simulator.
- Returns
- The newly created simulator, or null if failed.
◆ CreateSimulator() [1/2]
virtual ISimulator* Murl::Physics::IFactory::CreateSimulator |
( |
const String & |
className | ) |
|
|
pure virtual |
Create a physics simulator from the set of registered simulators.
- Parameters
-
className | The class name of the simulator to create. |
- Returns
- The newly created simulator, or null if failed.
◆ CreateSimulator() [2/2]
virtual ISimulator* Murl::Physics::IFactory::CreateSimulator |
( |
const ISimulator::ClassInfo & |
classInfo | ) |
|
|
pure virtual |
Create a physics simulator from the set of registered simulators.
- Parameters
-
classInfo | The ClassInfo structure of the simulator to create. |
- Returns
- The newly created simulator, or null if failed.
◆ DestroySimulator()
virtual Bool Murl::Physics::IFactory::DestroySimulator |
( |
ISimulator *& |
simulator | ) |
|
|
pure virtual |
Destroy a previously created physics simulator.
- Parameters
-
simulator | A reference to a pointer holding the simulator to destroy. |
- Returns
- true if successful.
The documentation for this interface was generated from the following file: