diff options
Diffstat (limited to 'quadtree.h')
-rw-r--r-- | quadtree.h | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -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 |