Continuation.
This commit is contained in:
parent
8bc8dd4fd7
commit
b673f9d2b2
|
@ -129,6 +129,7 @@ void renderScene() {
|
|||
}
|
||||
|
||||
void displayQTTree(QTNode *qn) {
|
||||
//QT_split(qn);
|
||||
QT_enumerate(qn);
|
||||
}
|
||||
|
||||
|
|
19
square.h
Normal file
19
square.h
Normal file
|
@ -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);
|
Loading…
Reference in New Issue
Block a user