]> git.mxchange.org Git - flightgear.git/blob - Simulator/Airports/genapt.hxx
Initial revision.
[flightgear.git] / Simulator / Airports / genapt.hxx
1 //
2 // getapt.hxx -- generate airport scenery from the given definition file
3 //
4 // Written by Curtis Olson, started September 1998.
5 //
6 // Copyright (C) 1998  Curtis L. Olson  - curt@me.umn.edu
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., 675 Mass Ave, Cambridge, MA 02139, USA.
21 //
22 // $Id$
23
24
25 #ifndef _GENAPT_HXX
26 #define _GENAPT_HXX
27
28
29 #ifndef __cplusplus                                                          
30 # error This library requires C++
31 #endif                                   
32
33
34 #include <Include/compiler.h>
35
36 #include STL_STRING
37 #include <set>
38
39 #ifdef __BORLANDC__
40 #  define exception c_exception
41 #endif
42
43 #include <Scenery/tile.hxx>
44
45 FG_USING_STD(string);
46 FG_USING_STD(set);
47
48
49 // maximum size of airport perimeter structure, even for complex
50 // airports such as KORD this number is typically not very big.
51 #define MAX_PERIMETER 20
52
53 // name of the material to use for the airport base
54 #define APT_BASE_MATERIAL "grass"
55
56
57 // Load a .apt file and register the GL fragments with the
58 // corresponding tile
59 int
60 fgAptGenerate(const string& path, fgTILE *tile);
61
62
63 #endif /* _AIRPORTS_HXX */
64
65