Voxellancer
0.3
A game about voxels in space
Main Page
Related Pages
Classes
Files
File List
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
WorldObject
Definition:
worldobject.h:43
WorldTreeGeode
Definition:
worldtreegeode.h:11
TAABB< int >
WorldTreeNode
Definition:
worldtreenode.h:13
WorldTree
Definition:
worldtree.h:13
src
worldtree
worldtree.h
Generated on Sun Mar 30 2014 13:32:32 for Voxellancer by
1.8.6