]> git.mxchange.org Git - simgear.git/blob - simgear/scene/tgdb/obj.hxx
Modified Files:
[simgear.git] / simgear / scene / tgdb / obj.hxx
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
29 #ifndef __cplusplus
30 # error This library requires C++
31 #endif
32
33
34 #include <simgear/compiler.h>
35
36 #include STL_STRING
37
38 #include <osg/Array>
39 #include <osg/Group>
40
41 #include <simgear/math/point3d.hxx>
42
43 SG_USING_STD(string);
44
45 class SGBucket;
46 class SGMaterialLib;
47
48
49 // Load a Binary obj file
50 bool SGBinObjLoad( const string& path, const bool is_base,
51                    Point3D *center,
52                    double *bounding_radius,
53                    SGMaterialLib *matlib,
54                    bool use_random_objects,
55                    osg::Group *geometry,
56                    osg::Group *vasi_lights,
57                    osg::Group *rwy_lights,
58                    osg::Group *taxi_lights,
59                    osg::Vec3Array *ground_lights );
60
61 // Generate an ocean tile
62 bool SGGenTile( const string& path, SGBucket b,
63                 Point3D *center, double *bounding_radius,
64                 SGMaterialLib *matlib, osg::Group *geometry );
65
66
67 #endif // _SG_OBJ_HXX