1 // shape.hxx -- shape/gpc utils
3 // Written by Curtis Olson, started February 1999.
5 // Copyright (C) 1999 Curtis L. Olson - curt@flightgear.org
7 // This program is free software; you can redistribute it and/or modify
8 // it under the terms of the GNU General Public License as published by
9 // the Free Software Foundation; either version 2 of the License, or
10 // (at your option) any later version.
12 // This program is distributed in the hope that it will be useful,
13 // but WITHOUT ANY WARRANTY; without even the implied warranty of
14 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 // GNU General Public License for more details.
17 // You should have received a copy of the GNU General Public License
18 // along with this program; if not, write to the Free Software
19 // Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
28 // include Generic Polygon Clipping Library
33 #include <Polygon/names.hxx>
36 // Initialize structure we use to create polygons for the gpc library
37 // this must be called once from main for any program that uses this library
38 bool shape_utils_init();
41 // initialize a gpc_polygon
42 void init_shape(gpc_polygon *shape);
45 void add_to_shape(int count, double *coords, gpc_polygon *shape);
47 // process shape (write polygon to all intersecting tiles)
48 void process_shape(string path, AreaType area, gpc_polygon *gpc_shape);
51 void free_shape(gpc_polygon *shape);