neoGFX
Cross-platform C++ app/game engine
|
#include <aabb_quadtree.hpp>
Public Types | |
typedef Collider | collider_type |
typedef Allocator | allocator_type |
typedef allocator_type::pointer | pointer |
typedef allocator_type::const_pointer | const_pointer |
typedef allocator_type::reference | reference |
typedef allocator_type::const_reference | const_reference |
typedef const void * | const_iterator |
typedef void * | iterator |
Public Member Functions | |
aabb_quadtree (i_ecs &aEcs, const aabb_2d &aRootAabb=aabb_2d{ vec2{-4096.0, -4096.0}, vec2{4096.0, 4096.0} }, scalar aMinimumQuadrantSize=16.0, const allocator_type &aAllocator=allocator_type{}) | |
scalar | minimum_quadrant_size () const |
void | full_update () |
void | dynamic_update () |
template<typename CollisionAction > | |
void | collisions (CollisionAction aCollisionAction) const |
template<typename ResultContainer > | |
void | pick (const vec2 &aPoint, ResultContainer &aResult, std::function< bool(entity_id aMatch, const vec2 &aPoint)> aColliderPredicate=[](entity_id, const vec2 &) { return true;}) const |
template<typename Visitor > | |
void | visit_aabbs (const Visitor &aVisitor) const |
void | insert (reference aItem) |
void | remove (reference aItem) |
uint32_t | count () const |
uint32_t | depth () const |
const node & | root_node () const |
Definition at line 33 of file aabb_quadtree.hpp.
typedef Allocator neogfx::game::aabb_quadtree< Collider, BucketSize, Allocator >::allocator_type |
Definition at line 37 of file aabb_quadtree.hpp.
typedef Collider neogfx::game::aabb_quadtree< Collider, BucketSize, Allocator >::collider_type |
Definition at line 36 of file aabb_quadtree.hpp.
typedef const void* neogfx::game::aabb_quadtree< Collider, BucketSize, Allocator >::const_iterator |
Definition at line 43 of file aabb_quadtree.hpp.
typedef allocator_type::const_pointer neogfx::game::aabb_quadtree< Collider, BucketSize, Allocator >::const_pointer |
Definition at line 39 of file aabb_quadtree.hpp.
typedef allocator_type::const_reference neogfx::game::aabb_quadtree< Collider, BucketSize, Allocator >::const_reference |
Definition at line 41 of file aabb_quadtree.hpp.
typedef void* neogfx::game::aabb_quadtree< Collider, BucketSize, Allocator >::iterator |
Definition at line 44 of file aabb_quadtree.hpp.
typedef allocator_type::pointer neogfx::game::aabb_quadtree< Collider, BucketSize, Allocator >::pointer |
Definition at line 38 of file aabb_quadtree.hpp.
typedef allocator_type::reference neogfx::game::aabb_quadtree< Collider, BucketSize, Allocator >::reference |
Definition at line 40 of file aabb_quadtree.hpp.
|
inline |
Definition at line 320 of file aabb_quadtree.hpp.
|
inline |
Definition at line 357 of file aabb_quadtree.hpp.
|
inline |
Definition at line 411 of file aabb_quadtree.hpp.
|
inline |
Definition at line 415 of file aabb_quadtree.hpp.
|
inline |
Definition at line 347 of file aabb_quadtree.hpp.
|
inline |
Definition at line 336 of file aabb_quadtree.hpp.
|
inline |
Definition at line 402 of file aabb_quadtree.hpp.
|
inline |
Definition at line 332 of file aabb_quadtree.hpp.
|
inline |
Definition at line 387 of file aabb_quadtree.hpp.
|
inline |
Definition at line 406 of file aabb_quadtree.hpp.
|
inline |
Definition at line 420 of file aabb_quadtree.hpp.
|
inline |
Definition at line 397 of file aabb_quadtree.hpp.