git.asbjorn.biz
/
swftools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
implemented stroke merging
[swftools.git]
/
lib
/
gfxpoly
/
poly.h
diff --git
a/lib/gfxpoly/poly.h
b/lib/gfxpoly/poly.h
index
8efee2e
..
186075a
100644
(file)
--- a/
lib/gfxpoly/poly.h
+++ b/
lib/gfxpoly/poly.h
@@
-6,7
+6,7
@@
#include "../types.h"
//#define DEBUG
#include "../types.h"
//#define DEBUG
-#define CHECKS
+//#define CHECKS
/* features */
#define SPLAY
/* features */
#define SPLAY
@@
-48,6
+48,7
@@
typedef struct _windrule
typedef struct _gfxpolystroke {
segment_dir_t dir;
typedef struct _gfxpolystroke {
segment_dir_t dir;
+ int points_size;
int num_points;
point_t*points;
fillstyle_t*fs;
int num_points;
point_t*points;
fillstyle_t*fs;
@@
-90,7
+91,9
@@
typedef struct _segment {
gfxpolystroke_t*stroke;
int stroke_pos;
gfxpolystroke_t*stroke;
int stroke_pos;
+#ifndef DONT_REMEMBER_CROSSINGS
dict_t scheduled_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)
} segment_t;
#define LINE_EQ(p,s) ((double)(s)->delta.y*(p).x - (double)(s)->delta.x*(p).y - (s)->k)