1 /*
2     Copyright (c) 2005-2020 Intel Corporation
3 
4     Licensed under the Apache License, Version 2.0 (the "License");
5     you may not use this file except in compliance with the License.
6     You may obtain a copy of the License at
7 
8         http://www.apache.org/licenses/LICENSE-2.0
9 
10     Unless required by applicable law or agreed to in writing, software
11     distributed under the License is distributed on an "AS IS" BASIS,
12     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13     See the License for the specific language governing permissions and
14     limitations under the License.
15 */
16 
17 #include "pover_global.h"  // for declaration of DEFINE and INIT
18 
19 DEFINE Polygon_map_t *gPolymap1 INIT(0);
20 DEFINE Polygon_map_t *gPolymap2 INIT(0);
21 DEFINE Polygon_map_t *gResultMap INIT(0);
22 
23 extern void Usage(int argc, char **argv);
24 
25 extern bool ParseCmdLine(int argc, char **argv );
26 
27 extern bool GenerateMap(Polygon_map_t **newMap, int xSize, int ySize, int gNPolygons, colorcomp_t maxR, colorcomp_t maxG, colorcomp_t maxB);
28 
29 extern bool PolygonsOverlap(RPolygon *p1, RPolygon *p2, int &xl, int &yl, int &xh, int &yh);
30 
31 extern void CheckPolygonMap(Polygon_map_t *checkMap);
32 
33 extern bool CompOnePolygon(RPolygon *p1, RPolygon *p2);
34 
35 extern bool PolygonsEqual(RPolygon *p1, RPolygon *p2);
36 
37 extern bool ComparePolygonMaps(Polygon_map_t *map1, Polygon_map_t *map2);
38 
39 extern void SetRandomSeed(int newSeed);
40 
41 extern int NextRan(int n);
42