Simulant  21.12-574
A portable game engine for Windows, OSX, Linux, Dreamcast, and PSP
Classes | Public Types | Public Member Functions | Friends | List of all members
smlt::Quadtree< TreeData, NodeData > Class Template Reference


struct  Node

Public Types

using TraverseCallback = void(Quadtree::Node *)
typedef TreeData tree_data_type
typedef NodeData node_data_type

Public Member Functions

 Quadtree (const AABB &bounds, uint8_t max_level_count=4, std::shared_ptr< TreeData > tree_data=std::shared_ptr< TreeData >())
bool is_leaf (Node &node) const
Quadtree::Nodefind_destination_for_sphere (const Vec3 &centre, float radius)
Quadtree::Nodefind_destination_for_triangle (const Vec3 *vertices)
void traverse (std::function< void(Quadtree::Node *)> cb)
template<typename Callback >
void traverse_visible (const Frustum &frustum, const Callback &cb)
AABB bounds () const
TreeData * data () const


class LooseQuadtreeTests

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