- // Add node to the quadtree using its x, y
- void addNode(osg::Node* node, const osg::Matrix& transform);
- // Make a quadtree of nodes from a vector of nodes
- static osg::Group* makeQuadTree(std::vector<osg::ref_ptr<osg::Node> >& nodes,
+ // Add node to the quadtree using its x, y and LoD
+ void addNode(osg::Node* node, int lod, const osg::Matrix& transform);
+ // Make a quadtree of nodes from a map of nodes and LOD values
+ static osg::Group* makeQuadTree(LodMap& nodes,