From e0c0a9f3816facd0fc4066a50479f823447e03f6 Mon Sep 17 00:00:00 2001 From: Jon Bergli Heier Date: Sun, 10 Apr 2011 14:51:47 +0200 Subject: Simple raise/lower implementation. --- quadtree.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'quadtree.h') diff --git a/quadtree.h b/quadtree.h index 36e92ad..45ee09b 100644 --- a/quadtree.h +++ b/quadtree.h @@ -52,6 +52,9 @@ class Quadtree { Quadtree(int width, int height, float *heightmap); virtual ~Quadtree(); + void raise(float x, float z, float radius, float focus, float strength); + + Vector3 calc_normal(int x, int y); void update(float x, float z); QuadNode *find(float x, float y); QuadNode *get_left(QuadNode *node); -- cgit v1.2.3