Jolt Physics
A multi core friendly Game Physics Engine
Loading...
Searching...
No Matches
BroadPhaseLayerInterfaceTable Class Reference

#include <BroadPhaseLayerInterfaceTable.h>

Inheritance diagram for BroadPhaseLayerInterfaceTable:
BroadPhaseLayerInterface NonCopyable

Public Member Functions

JPH_OVERRIDE_NEW_DELETE BroadPhaseLayerInterfaceTable (uint inNumObjectLayers, uint inNumBroadPhaseLayers)
 
void MapObjectToBroadPhaseLayer (ObjectLayer inObjectLayer, BroadPhaseLayer inBroadPhaseLayer)
 
virtual uint GetNumBroadPhaseLayers () const override
 Return the number of broadphase layers there are. More...
 
virtual BroadPhaseLayer GetBroadPhaseLayer (ObjectLayer inLayer) const override
 Convert an object layer to the corresponding broadphase layer. More...
 
void SetBroadPhaseLayerName (BroadPhaseLayer inLayer, const char *inName)
 
virtual const char * GetBroadPhaseLayerName (BroadPhaseLayer inLayer) const override
 Get the user readable name of a broadphase layer (debugging purposes) More...
 
- Public Member Functions inherited from BroadPhaseLayerInterface
virtual ~BroadPhaseLayerInterface ()=default
 Destructor. More...
 
virtual uint GetNumBroadPhaseLayers () const =0
 Return the number of broadphase layers there are. More...
 
virtual BroadPhaseLayer GetBroadPhaseLayer (ObjectLayer inLayer) const =0
 Convert an object layer to the corresponding broadphase layer. More...
 
virtual const char * GetBroadPhaseLayerName (BroadPhaseLayer inLayer) const =0
 Get the user readable name of a broadphase layer (debugging purposes) More...
 
- Public Member Functions inherited from NonCopyable
 NonCopyable ()=default
 
 NonCopyable (const NonCopyable &)=delete
 
void operator= (const NonCopyable &)=delete
 

Detailed Description

BroadPhaseLayerInterface implementation. This defines a mapping between object and broadphase layers. This implementation uses a simple table

Constructor & Destructor Documentation

◆ BroadPhaseLayerInterfaceTable()

JPH_OVERRIDE_NEW_DELETE BroadPhaseLayerInterfaceTable::BroadPhaseLayerInterfaceTable ( uint  inNumObjectLayers,
uint  inNumBroadPhaseLayers 
)
inline

Member Function Documentation

◆ GetBroadPhaseLayer()

virtual BroadPhaseLayer BroadPhaseLayerInterfaceTable::GetBroadPhaseLayer ( ObjectLayer  inLayer) const
inlineoverridevirtual

Convert an object layer to the corresponding broadphase layer.

Implements BroadPhaseLayerInterface.

◆ GetBroadPhaseLayerName()

virtual const char * BroadPhaseLayerInterfaceTable::GetBroadPhaseLayerName ( BroadPhaseLayer  inLayer) const
inlineoverridevirtual

Get the user readable name of a broadphase layer (debugging purposes)

Implements BroadPhaseLayerInterface.

◆ GetNumBroadPhaseLayers()

virtual uint BroadPhaseLayerInterfaceTable::GetNumBroadPhaseLayers ( ) const
inlineoverridevirtual

Return the number of broadphase layers there are.

Implements BroadPhaseLayerInterface.

◆ MapObjectToBroadPhaseLayer()

void BroadPhaseLayerInterfaceTable::MapObjectToBroadPhaseLayer ( ObjectLayer  inObjectLayer,
BroadPhaseLayer  inBroadPhaseLayer 
)
inline

◆ SetBroadPhaseLayerName()

void BroadPhaseLayerInterfaceTable::SetBroadPhaseLayerName ( BroadPhaseLayer  inLayer,
const char *  inName 
)
inline

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