X-Git-Url: http://git.asbjorn.biz/?p=swftools.git;a=blobdiff_plain;f=lib%2Fgfxpoly%2Fpoly.h;h=0017f8e8b78f10ce82a0393b4da09d527c4f2368;hp=4154e798990ca75afb2f1efe47f5e0eb68fd234b;hb=9adb1e34457799c1ceae768241e3eb8615e4e09d;hpb=82228fda28e4361ca674fb2513f1c23c471421e6 diff --git a/lib/gfxpoly/poly.h b/lib/gfxpoly/poly.h index 4154e79..0017f8e 100644 --- a/lib/gfxpoly/poly.h +++ b/lib/gfxpoly/poly.h @@ -6,9 +6,6 @@ #include "../types.h" #include "wind.h" -//#define DEBUG -#define CHECKS - /* features */ #define SPLAY #define DONT_REMEMBER_CROSSINGS @@ -93,11 +90,12 @@ typedef struct _segment { void gfxpoly_fail(char*expr, char*file, int line, const char*function); -char gfxpoly_check(gfxpoly_t*poly); +char gfxpoly_check(gfxpoly_t*poly, char updown); int gfxpoly_num_segments(gfxpoly_t*poly); int gfxpoly_size(gfxpoly_t*poly); void gfxpoly_dump(gfxpoly_t*poly); void gfxpoly_save(gfxpoly_t*poly, const char*filename); +void gfxpoly_save_arrows(gfxpoly_t*poly, const char*filename); gfxpoly_t* gfxpoly_process(gfxpoly_t*poly1, gfxpoly_t*poly2, windrule_t*windrule, windcontext_t*context); gfxpoly_t* gfxpoly_intersect(gfxpoly_t*p1, gfxpoly_t*p2);