X-Git-Url: http://git.asbjorn.biz/?p=swftools.git;a=blobdiff_plain;f=lib%2Fgfxpoly%2Fpoly.h;h=54d54b11b46b73a2432e10a8055a3cf8f9f0bb8d;hp=e678b00471e6d0d9e10cfbba6de832a44639cc50;hb=bf04757cd94e94c1f67fa3d2a4e3e59fa5bce0c0;hpb=002f2ed7c404339e11d669aa86ec998d8dd473a5 diff --git a/lib/gfxpoly/poly.h b/lib/gfxpoly/poly.h index e678b00..54d54b1 100644 --- a/lib/gfxpoly/poly.h +++ b/lib/gfxpoly/poly.h @@ -5,7 +5,7 @@ #include "../q.h" typedef enum {DIR_UP, DIR_DOWN} segment_dir_t; -typedef enum {EVENT_CROSS, EVENT_END, EVENT_HORIZONTAL, EVENT_START} eventtype_t; +typedef enum {EVENT_CROSS, EVENT_END, EVENT_START, EVENT_HORIZONTAL} eventtype_t; typedef enum {SLOPE_POSITIVE, SLOPE_NEGATIVE} slope_t; typedef struct _point { @@ -70,6 +70,7 @@ typedef struct _gfxpoly { } gfxpoly_t; gfxpoly_t* gfxpoly_new(double gridsize); +char gfxpoly_check(gfxpoly_t*poly); void gfxpoly_dump(gfxpoly_t*poly); gfxpoly_t* gfxpoly_process(gfxpoly_t*poly, windrule_t*windrule);