Changeset 4925 in orxonox.OLD for orxonox/trunk/src/lib/graphics/spatial_separation/quadtree.cc
- Timestamp:
- Jul 21, 2005, 4:54:55 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/lib/graphics/spatial_separation/quadtree.cc
r4924 r4925 68 68 float xOff = r->getCenter()->x - r->getAxis(); 69 69 float yOff = r->getCenter()->z - r->getAxis(); 70 this->offset = new Vector(); 70 71 this->offset->x = xOff; 71 72 this->offset->z = yOff; … … 179 180 void Quadtree::drawTree() const 180 181 { 181 this->rootNode->drawTree();182 //for(int i = 0; i < (int)pow(4, this->treeDepth); ++i)183 //{184 //this->nodes[i]->draw();185 //}182 //this->rootNode->drawTree(); 183 for(int i = 0; i < (int)pow(4, this->treeDepth); ++i) 184 { 185 this->nodes[i]->draw(); 186 } 186 187 }
Note: See TracChangeset
for help on using the changeset viewer.