Dura2D  v0.1.0
An educational 2D game physics library
Loading...
Searching...
No Matches
d2AABBTree Class Reference

#include <d2AABBTree.h>

Inheritance diagram for d2AABBTree:
d2Broadphase

Public Member Functions

 d2AABBTree (void)
 
void Add (d2Body *body) override
 
void Remove (d2Body *body) override
 
void Update (void) override
 
ColliderPairListComputePairs (void) override
 
d2BodyPick (const d2Vec2 &point) const override
 
void Query (const d2AABB &aabb, ColliderList &output) const override
 
void Draw (const d2Draw &draw) const override
 
- Public Member Functions inherited from d2Broadphase
virtual ~d2Broadphase ()=default
 

Additional Inherited Members

- Public Types inherited from d2Broadphase
typedef std::vector< d2Body * > ColliderList
 

Constructor & Destructor Documentation

◆ d2AABBTree()

d2AABBTree::d2AABBTree ( void )
inline

Member Function Documentation

◆ Add()

void d2AABBTree::Add ( d2Body * body)
overridevirtual

Implements d2Broadphase.

◆ ComputePairs()

ColliderPairList & d2AABBTree::ComputePairs ( void )
overridevirtual

Implements d2Broadphase.

◆ Draw()

void d2AABBTree::Draw ( const d2Draw & draw) const
overridevirtual

Implements d2Broadphase.

◆ Pick()

d2Body * d2AABBTree::Pick ( const d2Vec2 & point) const
overridevirtual

Implements d2Broadphase.

◆ Query()

void d2AABBTree::Query ( const d2AABB & aabb,
ColliderList & output ) const
inlineoverridevirtual

Implements d2Broadphase.

◆ Remove()

void d2AABBTree::Remove ( d2Body * body)
overridevirtual

Implements d2Broadphase.

◆ Update()

void d2AABBTree::Update ( void )
overridevirtual

Implements d2Broadphase.


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