#include <osg/Group>
#include <osg/Matrix>
-#include <simgear/math/SGMath.hxx>
+#include <simgear/scene/util/OsgMath.hxx>
namespace simgear
{
const Tree& getTree(unsigned i) const
{ return _trees[i]; }
TreeList _trees;
+
+ ~TreeBin() {
+ _trees.clear();
+ }
};
-
typedef std::list<TreeBin*> SGTreeBinList;
osg::Group* createForest(SGTreeBinList& forestList, const osg::Matrix& transform,