www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

commit b673f9d2b212358e7b75106cd371b6659ed037cc
parent 8bc8dd4fd77de17ed2c05c82feb444f35f909185
Author: Yoann <yoann.b87@voila.fr>
Date:   Mon, 10 Oct 2011 09:54:49 +0200

Continuation.

Diffstat:
Mdisplay.c | 1+
Asquare.h | 19+++++++++++++++++++
2 files changed, 20 insertions(+), 0 deletions(-)

diff --git a/display.c b/display.c @@ -129,6 +129,7 @@ void renderScene() { } void displayQTTree(QTNode *qn) { + //QT_split(qn); QT_enumerate(qn); } diff --git a/square.h b/square.h @@ -0,0 +1,19 @@ +// get_z() +#include "roam.h" + +// QuadTree Node. +typedef struct QTNode { + Vertex* center; + Vertex* vertices[4]; + struct QTNode* children[4]; + struct QTNode* neighbors[4]; + // linked list across all nodes, for traversal when we display them. + struct QTNode* nextNode; + struct QTNode* previousNode; + unsigned int minLOD; + unsigned int maxLOD; +} QTNode; + +QTNode* QT_example(); +void QT_enumerate(QTNode* first); +void QT_split(QTNode* parent);