]> git.mxchange.org Git - flightgear.git/blob - Airports/genapt.hxx
964722f943af3ff1730b415287845a61feeed42e
[flightgear.git] / 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 <string>        // Standard C++ string library
36 #include <set>
37 #include "Include/fg_stl_config.h"
38
39 #ifdef NEEDNAMESPACESTD
40 using namespace std;
41 #endif
42
43 #ifdef __BORLANDC__
44 #  define exception c_exception
45 #endif
46
47 #include <Scenery/tile.hxx>
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.2  1998/11/23 21:48:10  curt
69 // Borland portability tweaks.
70 //
71 // Revision 1.1  1998/09/14 02:14:01  curt
72 // Initial revision of genapt.[ch]xx for generating airport scenery.
73 //
74 //