Voxellancer  0.3
A game about voxels in space
 All Classes Functions Pages
worldtree.h
1 #pragma once
2 
3 #include <list>
4 #include <glm/glm.hpp>
5 
6 #include "geometry/aabb.h"
7 
8 
9 class WorldTreeNode;
10 class WorldObject;
11 class WorldTreeGeode;
12 
13 class WorldTree
14 {
15 public:
16  WorldTree();
17  ~WorldTree();
18 
19  WorldTreeNode* root();
20 
21  WorldTreeGeode* insert(WorldObject* worldObject);
22  void insert(WorldTreeGeode* geode);
23  void remove(WorldTreeGeode* geode);
24 
25  void aabbChanged(WorldTreeGeode* geode);
26 
27 
28 protected:
29  WorldTreeNode* m_root;
30 
31  void extend(const IAABB& aabb);
32  WorldTreeNode* containingNode(const IAABB& aabb, WorldTreeNode* node);
33 };
34 
Definition: worldobject.h:43
Definition: worldtreegeode.h:11
Definition: worldtreenode.h:13
Definition: worldtree.h:13