#ifndef OSGEARTH_LODGENERATOR_H #define OSGEARTH_LODGENERATOR_H #include #include #ifdef OSGEARTH_HAVE_MESH_OPTIMIZER namespace osgEarth { using namespace osgEarth; class OSGEARTH_EXPORT LODGenerator { public: struct LODOptions { float threshold; float rangeFactor; bool aggressive; }; osg::Node* generateLODs(osg::Node* node, const std::vector& options); }; } #else #pragma message("Warning: MeshOptimizer not available. LODGenerator will not be available.") #endif #endif