DYT/Tool/OpenSceneGraph-3.6.5/include/osgEarth/LODGenerator
2024-12-25 07:49:36 +08:00

33 lines
623 B
Plaintext

#ifndef OSGEARTH_LODGENERATOR_H
#define OSGEARTH_LODGENERATOR_H
#include <osgEarth/Common>
#include <osg/Node>
#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<LODOptions>& options);
};
}
#else
#pragma message("Warning: MeshOptimizer not available. LODGenerator will not be available.")
#endif
#endif