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.
22 // (Log is kept at end of this file)
29 // include Generic Polygon Clipping Library
34 #include <Polygon/names.hxx>
37 // Initialize structure we use to create polygons for the gpc library
38 // this must be called once from main for any program that uses this library
39 bool shape_utils_init();
42 // initialize a gpc_polygon
43 void init_shape(gpc_polygon *shape);
46 void add_to_shape(int count, double *coords, gpc_polygon *shape);
48 // process shape (write polygon to all intersecting tiles)
49 void process_shape(string path, AreaType area, gpc_polygon *gpc_shape);
52 void free_shape(gpc_polygon *shape);
59 // Revision 1.2 1999/02/25 21:31:09 curt
60 // First working version???
62 // Revision 1.1 1999/02/23 01:29:06 curt
63 // Additional progress.