Used to provide better reporting of collisions in a multithreaded environment. More...
Public Member Functions | |
ParallelCollisionDispatcher (PhysicsManager *PhysMan, btThreadSupportInterface *ThreadInterface, unsigned int MaxNumTasks, btCollisionConfiguration *CollisionConfig) | |
Class constructor. More... | |
virtual | ~ParallelCollisionDispatcher () |
Class destructor. | |
void * | allocateCollisionAlgorithm (int size) |
Allocates space for a new Collision Algorithm between two objects. More... | |
void | freeCollisionAlgorithm (void *ptr) |
Frees up the space belonging to a Collision Algorithm that is no longer needed. More... | |
AlgoList * | GetAlgoCreationQueue () |
Gets the list of algorithms that have been created and need processing. More... | |
Protected Attributes | |
AlgoList | AlgoCreationQueue |
A list of all the algorithms that have been created and need processing. More... | |
PhysicsManager * | PhysMan |
Physics Manager. | |
Used to provide better reporting of collisions in a multithreaded environment.
Definition at line 107 of file collisiondispatcher.h.cpp.
Mezzanine::Physics::ParallelCollisionDispatcher::ParallelCollisionDispatcher | ( | PhysicsManager * | PhysMan, |
btThreadSupportInterface * | ThreadInterface, | ||
unsigned int | MaxNumTasks, | ||
btCollisionConfiguration * | CollisionConfig | ||
) |
Class constructor.
CollisionConfig | The collision configuration for the world being created. |
Definition at line 175 of file collisiondispatcher.cpp.
void * Mezzanine::Physics::ParallelCollisionDispatcher::allocateCollisionAlgorithm | ( | int | size | ) |
Allocates space for a new Collision Algorithm between two objects.
size | The size needed for the new Collision Algorithm. |
Definition at line 188 of file collisiondispatcher.cpp.
void Mezzanine::Physics::ParallelCollisionDispatcher::freeCollisionAlgorithm | ( | void * | ptr | ) |
Frees up the space belonging to a Collision Algorithm that is no longer needed.
ptr | A pointer to Collision Algorithim that is being removed. |
Definition at line 195 of file collisiondispatcher.cpp.
AlgoList * Mezzanine::Physics::ParallelCollisionDispatcher::GetAlgoCreationQueue | ( | ) |
Gets the list of algorithms that have been created and need processing.
Definition at line 226 of file collisiondispatcher.cpp.
|
protected |
A list of all the algorithms that have been created and need processing.
Definition at line 115 of file collisiondispatcher.h.cpp.