X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=simgear%2Fscene%2Fmodel%2Fmodellib.hxx;h=cdd6d820440a50f6c337d0c04f79f4b45b42b5fe;hb=32a6bd78d8bf143f40922f1a0bc7a88ea7706a7d;hp=287c2e807ac26102f88707561c70613d778ff452;hpb=c41caeaf647cad33ae0f7551ea5978f6d2afcd83;p=simgear.git diff --git a/simgear/scene/model/modellib.hxx b/simgear/scene/model/modellib.hxx index 287c2e80..cdd6d820 100644 --- a/simgear/scene/model/modellib.hxx +++ b/simgear/scene/model/modellib.hxx @@ -32,6 +32,10 @@ #include #include +namespace osg { + class PagedLOD; +} + namespace simgear { class SGModelData; // defined below @@ -46,6 +50,8 @@ public: static void init(const std::string &root_dir, SGPropertyNode* root); + static void resetPropertyRoot(); + static void setPanelFunc(panel_func pf); // Load a 3D model (any format) @@ -66,7 +72,7 @@ public: // the model file. Once the viewer steps onto that node the // model will be loaded. When the viewer does no longer reference this // node for a long time the node is unloaded again. - static osg::Node* loadPagedModel(const std::string &path, + static osg::PagedLOD* loadPagedModel(const std::string &path, SGPropertyNode *prop_root = NULL, SGModelData *data=0);