X-Git-Url: http://git.asbjorn.biz/?p=swftools.git;a=blobdiff_plain;f=lib%2Fgfxpoly%2Fpoly.h;h=ff623d362038cdc84c8c6d44c73c7c5aeb02ba0a;hp=2ea3ff4b6efdefd755b4690df1415137055913d4;hb=3513ae007a04da02f11cdca9f0d08ddda9eac245;hpb=f7e9e8a9616f1ecb26776369fda6807cf8821a68 diff --git a/lib/gfxpoly/poly.h b/lib/gfxpoly/poly.h index 2ea3ff4..ff623d3 100644 --- a/lib/gfxpoly/poly.h +++ b/lib/gfxpoly/poly.h @@ -8,7 +8,7 @@ #define CHECKS #define SPLAY -typedef enum {DIR_UP, DIR_DOWN} segment_dir_t; +typedef enum {DIR_UP, DIR_DOWN, DIR_UNKNOWN} segment_dir_t; typedef enum {EVENT_CROSS, EVENT_END, EVENT_CORNER, EVENT_START, EVENT_HORIZONTAL} eventtype_t; typedef enum {SLOPE_POSITIVE, SLOPE_NEGATIVE} slope_t; @@ -105,6 +105,18 @@ typedef struct _gfxpoly { edge_t*edges; } gfxpoly_t; +typedef struct _gfxstroke { + segment_dir_t dir; + int num_points; + point_t*points; + fillstyle_t*fs; +} gfxstroke_t; +typedef struct _gfxcompactpoly { + double gridsize; + int num_strokes; + gfxstroke_t*strokes; +} gfxcompactpoly_t; + void gfxpoly_fail(char*expr, char*file, int line, const char*function); gfxpoly_t* gfxpoly_new(double gridsize);