X-Git-Url: http://git.asbjorn.biz/?p=swftools.git;a=blobdiff_plain;f=lib%2Fgfxpoly%2Fpoly.h;h=3129ee2c036fff455ac856e3c26c4e861bf0b1ab;hp=270734f18f2340fc251a7828af5751f33514b447;hb=42bba07c1573e32b0cf504e76619fd1bd0eb3dcd;hpb=7be8967177293d3a0b4b8a286f16b740933ac583 diff --git a/lib/gfxpoly/poly.h b/lib/gfxpoly/poly.h index 270734f..3129ee2 100644 --- a/lib/gfxpoly/poly.h +++ b/lib/gfxpoly/poly.h @@ -5,9 +5,6 @@ #include "../q.h" #include "../types.h" -//#define DEBUG -//#define CHECKS - /* features */ #define SPLAY #define DONT_REMEMBER_CROSSINGS @@ -16,10 +13,12 @@ typedef enum {DIR_UP, DIR_DOWN, DIR_UNKNOWN} segment_dir_t; typedef enum {EVENT_CROSS, EVENT_END, EVENT_START, EVENT_HORIZONTAL} eventtype_t; typedef enum {SLOPE_POSITIVE, SLOPE_NEGATIVE} slope_t; +#define INVALID_COORD (0x7fffffff) typedef struct _point { int32_t x; int32_t y; } point_t; +type_t point_type; typedef struct _fillstyle { void*internal;