20 mNumBroadPhaseLayers(inNumBroadPhaseLayers)
23#if defined(JPH_EXTERNAL_PROFILE) || defined(JPH_PROFILE_ENABLED)
24 mBroadPhaseLayerNames.
resize(inNumBroadPhaseLayers,
"Undefined");
31 mObjectToBroadPhase[inObjectLayer] = inBroadPhaseLayer;
36 return mNumBroadPhaseLayers;
41 return mObjectToBroadPhase[inLayer];
44#if defined(JPH_EXTERNAL_PROFILE) || defined(JPH_PROFILE_ENABLED)
57 uint mNumBroadPhaseLayers;
59#if defined(JPH_EXTERNAL_PROFILE) || defined(JPH_PROFILE_ENABLED)
unsigned int uint
Definition: Core.h:452
#define JPH_NAMESPACE_END
Definition: Core.h:378
#define JPH_NAMESPACE_BEGIN
Definition: Core.h:372
#define JPH_ASSERT(...)
Definition: IssueReporting.h:33
#define JPH_OVERRIDE_NEW_DELETE
Macro to override the new and delete functions.
Definition: Memory.h:31
uint16 ObjectLayer
Definition: ObjectLayer.h:16
void resize(size_type inNewSize)
Resize array to new length.
Definition: Array.h:118
Definition: BroadPhaseLayer.h:18
uint8 Type
Definition: BroadPhaseLayer.h:20
Interface that the application should implement to allow mapping object layers to broadphase layers.
Definition: BroadPhaseLayer.h:61
Definition: BroadPhaseLayerInterfaceTable.h:15
virtual BroadPhaseLayer GetBroadPhaseLayer(ObjectLayer inLayer) const override
Convert an object layer to the corresponding broadphase layer.
Definition: BroadPhaseLayerInterfaceTable.h:39
virtual uint GetNumBroadPhaseLayers() const override
Return the number of broadphase layers there are.
Definition: BroadPhaseLayerInterfaceTable.h:34
void MapObjectToBroadPhaseLayer(ObjectLayer inObjectLayer, BroadPhaseLayer inBroadPhaseLayer)
Definition: BroadPhaseLayerInterfaceTable.h:28
void SetBroadPhaseLayerName(BroadPhaseLayer inLayer, const char *inName)
Definition: BroadPhaseLayerInterfaceTable.h:45
virtual const char * GetBroadPhaseLayerName(BroadPhaseLayer inLayer) const override
Get the user readable name of a broadphase layer (debugging purposes)
Definition: BroadPhaseLayerInterfaceTable.h:50
JPH_OVERRIDE_NEW_DELETE BroadPhaseLayerInterfaceTable(uint inNumObjectLayers, uint inNumBroadPhaseLayers)
Definition: BroadPhaseLayerInterfaceTable.h:19