65 lines
1.7 KiB
C++
65 lines
1.7 KiB
C++
//
|
|
// 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
|
|
|
|
|
|
#include <Include/compiler.h>
|
|
|
|
#include STL_STRING
|
|
#include <set>
|
|
|
|
#ifdef __BORLANDC__
|
|
# define exception c_exception
|
|
#endif
|
|
|
|
#include <Scenery/tile.hxx>
|
|
|
|
FG_USING_STD(string);
|
|
FG_USING_STD(set);
|
|
|
|
|
|
// 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 */
|
|
|
|
|