1 // obj.hxx -- routines to handle loading scenery and building the plib
4 // Written by Curtis Olson, started October 1997.
6 // Copyright (C) 1997 Curtis L. Olson - curt@infoplane.com
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.
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.
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., 675 Mass Ave, Cambridge, MA 02139, USA.
30 # error This library requires C++
34 #include <simgear/compiler.h>
38 #include <plib/ssg.h> // plib include
40 #include <simgear/bucket/newbucket.hxx>
41 #include <simgear/math/sg_types.hxx>
42 #include <simgear/scene/material/matlib.hxx>
47 // duplicated from the TerraGear tools
48 #define FG_MAX_NODES 4000
51 // Load a Binary obj file
52 bool fgBinObjLoad( const string& path, const bool is_base,
54 double *bounding_radius,
55 SGMaterialLib *matlib,
57 ssgBranch* rwy_lights,
58 ssgBranch* taxi_lights,
59 ssgVertexArray *ground_lights );
61 // Generate an ocean tile
62 bool fgGenTile( const string& path, SGBucket b,
63 Point3D *center, double *bounding_radius,
64 SGMaterialLib *matlib, ssgBranch* geometry );