1 // obj.hxx -- routines to handle loading scenery and building the plib
2 //            scene graph.
3 //
4 // Written by Curtis Olson, started October 1997.
5 //
6 // Copyright (C) 1997  Curtis L. Olson  - http://www.flightgear.org/~curt
7 //
8 // This program is free software; you can redistribute it and/or
9 // modify it under the terms of the GNU General Public License as
10 // published by the Free Software Foundation; either version 2 of the
11 // License, or (at your option) any later version.
12 //
13 // This program is distributed in the hope that it will be useful, but
14 // WITHOUT ANY WARRANTY; without even the implied warranty of
15 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
16 // General Public License for more details.
17 //
18 // You should have received a copy of the GNU General Public License
19 // along with this program; if not, write to the Free Software
20 // Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
21 //
22 // $Id$
23 
24 
25 #ifndef _SG_OBJ_HXX
26 #define _SG_OBJ_HXX
27 
28 #ifndef __cplusplus
29 # error This library requires C++
30 #endif
31 
32 #include <simgear/compiler.h>
33 
34 #include <string>
35 
36 #include <osg/Node>
37 #include <osg/Group>
38 
39 using std::string;
40 
41 class SGMaterialLib;
42 namespace simgear {
43 class SGReaderWriterOptions;
44 }
45 
46 osg::Node*
47 SGLoadBTG(const std::string& path,
48           const simgear::SGReaderWriterOptions* options);
49 
50 #endif // _SG_OBJ_HXX
51