summaryrefslogtreecommitdiff
path: root/quadtree.h
diff options
context:
space:
mode:
Diffstat (limited to 'quadtree.h')
-rw-r--r--quadtree.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/quadtree.h b/quadtree.h
index 923a49f..a0e5254 100644
--- a/quadtree.h
+++ b/quadtree.h
@@ -1,6 +1,8 @@
#ifndef QUADTREE_H
#define QUADTREE_H
+#include "vector.h"
+
class Quadtree {
public:
struct QuadNode {
@@ -21,6 +23,7 @@ class Quadtree {
void draw();
void draw_grid();
float get_height(float px, float py);
+ Vector3 get_normal(int index);
};
float *heights;
@@ -36,7 +39,11 @@ class Quadtree {
void create_nodes(int levels);
unsigned int count_nodes();
void make_vbo();
- QuadNode *find(float x, float y, int leve = -1l);
+ QuadNode *find(float x, float y, int level = -1);
+ QuadNode *get_left(QuadNode *node);
+ QuadNode *get_right(QuadNode *node);
+ QuadNode *get_up(QuadNode *node);
+ QuadNode *get_down(QuadNode *node);
};
#endif