40 #ifndef _physicscollisiondispatcher_h_cpp
41 #define _physicscollisiondispatcher_h_cpp
43 #include <btBulletDynamicsCommon.h>
44 #include <BulletMultiThreaded/SpuGatheringCollisionDispatcher.h>
56 typedef std::list<btCollisionAlgorithm*>
AlgoList;
void freeCollisionAlgorithm(void *ptr)
Frees up the space belonging to a Collision Algorithm that is no longer needed.
virtual ~ParallelCollisionDispatcher()
Class destructor.
void * allocateCollisionAlgorithm(int size)
Allocates space for a new Collision Algorithm between two objects.
AlgoList AlgoCreationQueue
A list of all the algorithms that have been created and need processing.
void freeCollisionAlgorithm(void *ptr)
Frees up the space belonging to a Collision Algorithm that is no longer needed.
AlgoList * GetAlgoCreationQueue()
Gets the list of algorithms that have been created and need processing.
ParallelCollisionDispatcher(PhysicsManager *PhysMan, btThreadSupportInterface *ThreadInterface, unsigned int MaxNumTasks, btCollisionConfiguration *CollisionConfig)
Class constructor.
PhysicsManager * PhysMan
Physics Manager.
Used to provide better reporting of collisions.
std::list< btCollisionAlgorithm * > AlgoList
Convenience datatype for a collection of Collision Algorithms.
Used to provide better reporting of collisions in a multithreaded environment.
This is simply a place for storing all the Physics Related functions.
PhysicsManager * PhysMan
Physics Manager.
AlgoList * GetAlgoCreationQueue()
Gets the list of algorithms that have been created and need processing.
The bulk of the engine components go in this namspace.
AlgoList AlgoCreationQueue
A list of all the algorithms that have been created and need processing.
virtual ~CollisionDispatcher()
Class destructor.
void * allocateCollisionAlgorithm(int size)
Allocates space for a new Collision Algorithm between two objects.
CollisionDispatcher(PhysicsManager *PhysMan, btCollisionConfiguration *CollisionConfig)
Class constructor.