]> git.mxchange.org Git - simgear.git/blob - simgear/scene/model/modellib.cxx
70216e066827d35440658c955d942c35289735ee
[simgear.git] / simgear / scene / model / modellib.cxx
1 // modellib.cxx - implement an SSG model library.
2
3 #ifdef HAVE_CONFIG_H
4 #  include <simgear_config.h>
5 #endif
6
7 #include <simgear/compiler.h>
8 #include <simgear/props/props.hxx>
9 #include <simgear/scene/util/SGNodeMasks.hxx>
10
11 #include "model.hxx"
12 #include "animation.hxx"
13
14 #include "modellib.hxx"
15
16
17 \f
18 ////////////////////////////////////////////////////////////////////////
19 // Implementation of SGModelLib.
20 ////////////////////////////////////////////////////////////////////////
21
22 SGModelLib::SGModelLib ()
23 {
24 }
25
26 SGModelLib::~SGModelLib ()
27 {
28 }
29
30 void
31 SGModelLib::flush1()
32 {
33 }
34
35 osg::Node*
36 SGModelLib::load_model( const string &fg_root,
37                            const string &path,
38                            SGPropertyNode *prop_root,
39                            double sim_time_sec,
40                            bool cache_object,
41                            SGModelData *data )
42 {
43   return sgLoad3DModel(fg_root, path, prop_root, sim_time_sec, 0, data );
44 }
45
46
47 // end of modellib.cxx