Krig Game Engine
QuadTree.h
Go to the documentation of this file.
1 
10 #ifndef QUAD_TREE_H_
11 #define QUAD_TREE_H_
12 
13 #include "QuadTreeNode.h"
14 #include "DisplayList.h"
15 #include "Terrain.h"
16 #include "Camera.h"
17 
18 class QuadTree {
19  public:
20  QuadTree();
21  ~QuadTree();
22 
23  void buildTree(Terrain* t);
24  int buildDisplayList(DisplayList* l, Camera* c);
25  int buildLeafList(DisplayList* l);
26 
27  void traverseTree();
28 
29  int buildTree(QuadTreeNode* &, const float&, const float&, const float&, const float&, const float&);
30  void traverseTree(QuadTreeNode* n);
31  int buildDisplayList(QuadTreeNode* n, DisplayList* l, Camera* c);
32  int buildLeafList(QuadTreeNode* n, DisplayList* l);
33 
34  QuadTreeNode* root;
35 };
36 
37 #endif
Camera management.
Definition: QuadTree.h:18
Definition: QuadTreeNode.h:15
Definition: terrain.h:14
Definition: DisplayList.h:12
definition of a quatree node containing min and max coordinates.
Definition: Camera.h:13
Maintains a list of viewable QuadTreeNodes.