X-Git-Url: http://git.asbjorn.biz/?p=swftools.git;a=blobdiff_plain;f=lib%2Fgfxpoly%2Fpoly.h;h=186075ac54a95028998aceeaf728b4b29a8018b4;hp=417c6c12a35a3125f0bcda3a7cbc2996c8924ddc;hb=34ea6c36c2a3377546d0e8038f0d4f43b5e3cb6f;hpb=fec1ab31707e68c2396b186e0e4928632402d649 diff --git a/lib/gfxpoly/poly.h b/lib/gfxpoly/poly.h index 417c6c1..186075a 100644 --- a/lib/gfxpoly/poly.h +++ b/lib/gfxpoly/poly.h @@ -6,8 +6,11 @@ #include "../types.h" //#define DEBUG -#define CHECKS +//#define CHECKS + +/* features */ #define SPLAY +#define DONT_REMEMBER_CROSSINGS typedef enum {DIR_UP, DIR_DOWN, DIR_UNKNOWN} segment_dir_t; typedef enum {EVENT_CROSS, EVENT_END, EVENT_START, EVENT_HORIZONTAL} eventtype_t; @@ -45,6 +48,7 @@ typedef struct _windrule typedef struct _gfxpolystroke { segment_dir_t dir; + int points_size; int num_points; point_t*points; fillstyle_t*fs; @@ -87,7 +91,9 @@ typedef struct _segment { gfxpolystroke_t*stroke; int stroke_pos; +#ifndef DONT_REMEMBER_CROSSINGS dict_t scheduled_crossings; +#endif } segment_t; #define LINE_EQ(p,s) ((double)(s)->delta.y*(p).x - (double)(s)->delta.x*(p).y - (s)->k)