Spinning Topp Logo BlackTopp Studios
inc
Public Member Functions | Protected Attributes | List of all members
Mezzanine::Physics::ParallelCollisionDispatcher Class Reference

Used to provide better reporting of collisions in a multithreaded environment. More...

+ Inheritance diagram for Mezzanine::Physics::ParallelCollisionDispatcher:
+ Collaboration diagram for Mezzanine::Physics::ParallelCollisionDispatcher:

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...
 
AlgoListGetAlgoCreationQueue ()
 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...
 
PhysicsManagerPhysMan
 Physics Manager.
 

Detailed Description

Used to provide better reporting of collisions in a multithreaded environment.

Definition at line 107 of file collisiondispatcher.h.cpp.

Constructor & Destructor Documentation

Mezzanine::Physics::ParallelCollisionDispatcher::ParallelCollisionDispatcher ( PhysicsManager PhysMan,
btThreadSupportInterface *  ThreadInterface,
unsigned int  MaxNumTasks,
btCollisionConfiguration *  CollisionConfig 
)

Class constructor.

Parameters
CollisionConfigThe collision configuration for the world being created.

Definition at line 175 of file collisiondispatcher.cpp.

Member Function Documentation

void * Mezzanine::Physics::ParallelCollisionDispatcher::allocateCollisionAlgorithm ( int  size)

Allocates space for a new Collision Algorithm between two objects.

Note
This usually means that a collision has started between two objects.
Parameters
sizeThe 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.

Note
This usually means that a collision has ended between two objects.
Parameters
ptrA 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.

Returns
Returns a reference to the list of algorithms that need processing.

Definition at line 226 of file collisiondispatcher.cpp.

Member Data Documentation

AlgoList Mezzanine::Physics::ParallelCollisionDispatcher::AlgoCreationQueue
protected

A list of all the algorithms that have been created and need processing.

Definition at line 115 of file collisiondispatcher.h.cpp.


The documentation for this class was generated from the following files: