]> git.mxchange.org Git - flightgear.git/blob - Simulator/Airports/genapt.hxx
Merge FG_Tools as subdirectory
[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 // (Log is kept at end of this file)
24
25
26 #ifndef _GENAPT_HXX
27 #define _GENAPT_HXX
28
29
30 #ifndef __cplusplus                                                          
31 # error This library requires C++
32 #endif                                   
33
34
35 #include <Include/compiler.h>
36
37 #include STL_STRING
38 #include <set>
39
40 #ifdef __BORLANDC__
41 #  define exception c_exception
42 #endif
43
44 #include <Scenery/tile.hxx>
45
46 FG_USING_STD(string);
47 FG_USING_STD(set);
48
49
50 // maximum size of airport perimeter structure, even for complex
51 // airports such as KORD this number is typically not very big.
52 #define MAX_PERIMETER 20
53
54 // name of the material to use for the airport base
55 #define APT_BASE_MATERIAL "grass"
56
57
58 // Load a .apt file and register the GL fragments with the
59 // corresponding tile
60 int
61 fgAptGenerate(const string& path, fgTILE *tile);
62
63
64 #endif /* _AIRPORTS_HXX */
65
66
67 // $Log$
68 // Revision 1.3  1999/03/02 01:02:32  curt
69 // Tweaks for building with native SGI compilers.
70 //
71 // Revision 1.2  1998/11/23 21:48:10  curt
72 // Borland portability tweaks.
73 //
74 // Revision 1.1  1998/09/14 02:14:01  curt
75 // Initial revision of genapt.[ch]xx for generating airport scenery.
76 //
77 //