From e19c3838a4d89fb0640ed563ffdf58cd125cde7f Mon Sep 17 00:00:00 2001 From: Jon Bergli Heier Date: Sat, 9 Apr 2011 15:04:32 +0200 Subject: #include cleanup --- quadtree.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'quadtree.cpp') diff --git a/quadtree.cpp b/quadtree.cpp index 8082ba7..1f2dd4a 100644 --- a/quadtree.cpp +++ b/quadtree.cpp @@ -4,8 +4,7 @@ #include #include -#define GL_GLEXT_PROTOTYPES -#include +#include "gl.h" #include #include @@ -170,10 +169,10 @@ Quadtree::QuadChunk::QuadChunk(Quadtree *tree, float x, float y, float width, fl this->y = y; this->width = width; this->height = height; + this->vbo_object = this->node_count = this->vertices = 0; + this->nodes = NULL; if(width / chunk_size > 1) { - node_count = 0; - nodes = NULL; for(int i = 0; i < 4; i++) { float nx = x + ((i & 1) ^((i & 2) >> 1)) * width / 2; float ny = y + ((i & 2) >> 1) * height / 2; -- cgit v1.2.3