added polygon processing speed test
[swftools.git] / lib / gfxpoly / poly.h
index 270734f..3129ee2 100644 (file)
@@ -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;