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


struct  Node

Public Types

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

Public Member Functions

 Octree (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
Octree::Nodefind_destination_for_sphere (const Vec3 &centre, float radius)
Octree::Nodefind_destination_for_triangle (const Vec3 *vertices)
void traverse (std::function< void(Octree::Node *)> cb)
template<typename Callback >
void traverse_visible (const Frustum &frustum, const Callback &cb)
AABB bounds () const
TreeData * data () const


class LooseOctreeTests

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