1998-09-14 02:14:00 +00:00
|
|
|
//
|
|
|
|
// getapt.hxx -- generate airport scenery from the given definition file
|
|
|
|
//
|
|
|
|
// Written by Curtis Olson, started September 1998.
|
|
|
|
//
|
|
|
|
// Copyright (C) 1998 Curtis L. Olson - curt@me.umn.edu
|
|
|
|
//
|
|
|
|
// This program is free software; you can redistribute it and/or
|
|
|
|
// modify it under the terms of the GNU General Public License as
|
|
|
|
// published by the Free Software Foundation; either version 2 of the
|
|
|
|
// License, or (at your option) any later version.
|
|
|
|
//
|
|
|
|
// This program is distributed in the hope that it will be useful, but
|
|
|
|
// WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
// General Public License for more details.
|
|
|
|
//
|
|
|
|
// You should have received a copy of the GNU General Public License
|
|
|
|
// along with this program; if not, write to the Free Software
|
|
|
|
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
|
|
|
//
|
|
|
|
// $Id$
|
|
|
|
|
|
|
|
|
|
|
|
#ifndef _GENAPT_HXX
|
|
|
|
#define _GENAPT_HXX
|
|
|
|
|
|
|
|
|
|
|
|
#ifndef __cplusplus
|
|
|
|
# error This library requires C++
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
1999-03-02 01:02:31 +00:00
|
|
|
#include <Include/compiler.h>
|
1998-09-14 02:14:00 +00:00
|
|
|
|
1999-03-02 01:02:31 +00:00
|
|
|
#include STL_STRING
|
|
|
|
#include <set>
|
1998-09-14 02:14:00 +00:00
|
|
|
|
1998-11-23 21:48:09 +00:00
|
|
|
#ifdef __BORLANDC__
|
|
|
|
# define exception c_exception
|
|
|
|
#endif
|
|
|
|
|
1998-09-14 02:14:00 +00:00
|
|
|
#include <Scenery/tile.hxx>
|
|
|
|
|
1999-03-02 01:02:31 +00:00
|
|
|
FG_USING_STD(string);
|
|
|
|
FG_USING_STD(set);
|
|
|
|
|
1998-09-14 02:14:00 +00:00
|
|
|
|
|
|
|
// maximum size of airport perimeter structure, even for complex
|
|
|
|
// airports such as KORD this number is typically not very big.
|
|
|
|
#define MAX_PERIMETER 20
|
|
|
|
|
|
|
|
// name of the material to use for the airport base
|
|
|
|
#define APT_BASE_MATERIAL "grass"
|
|
|
|
|
|
|
|
|
|
|
|
// Load a .apt file and register the GL fragments with the
|
|
|
|
// corresponding tile
|
|
|
|
int
|
|
|
|
fgAptGenerate(const string& path, fgTILE *tile);
|
|
|
|
|
|
|
|
|
|
|
|
#endif /* _AIRPORTS_HXX */
|
|
|
|
|
|
|
|
|