]> git.mxchange.org Git - simgear.git/blob - simgear/scene/model/modellib.hxx
b5613bc6483c013df309cf67eb0e783df4a68355
[simgear.git] / simgear / scene / model / modellib.hxx
1 // modellib.cxx - implement an SSG model library.
2
3 #ifndef _SG_MODEL_LIB_HXX
4 #define _SG_MODEL_LIB_HXX 1
5
6 #ifndef __cplusplus
7 # error This library requires C++
8 #endif
9
10 #include <simgear/compiler.h>   // for SG_USING_STD
11
12 #include <map>
13 #include STL_STRING
14
15 #include <osg/ref_ptr>
16 #include <osg/Node>
17
18 #include <simgear/props/props.hxx>
19 #include "model.hxx"
20
21 SG_USING_STD(map);
22 SG_USING_STD(string);
23
24
25 /**
26  * Class for loading and managing models with XML wrappers.
27  */
28 class SGModelLib
29 {
30
31 public:
32
33     SGModelLib ();
34     virtual ~SGModelLib ();
35     virtual void flush1();
36
37     virtual osg::Node *load_model( const string &fg_root,
38                                    const string &path,
39                                    SGPropertyNode *prop_root,
40                                    double sim_time_sec,
41                                    bool cache_object,
42                                    SGModelData *data = 0 );
43 };
44
45
46 #endif // _SG_MODEL_LIB_HXX