git.asbjorn.biz
/
swftools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
many optimizations and bugfixes in the new intersector code
[swftools.git]
/
lib
/
gfxpoly
/
poly.h
diff --git
a/lib/gfxpoly/poly.h
b/lib/gfxpoly/poly.h
index
e9da73c
..
972d471
100644
(file)
--- a/
lib/gfxpoly/poly.h
+++ b/
lib/gfxpoly/poly.h
@@
-13,6
+13,12
@@
typedef struct _point {
int32_t y;
} point_t;
int32_t y;
} point_t;
+typedef struct _edge {
+ point_t a;
+ point_t b;
+ struct _edge *next;
+} edge_t;
+
typedef struct _segment {
point_t a;
point_t b;
typedef struct _segment {
point_t a;
point_t b;
@@
-30,9
+36,10
@@
typedef struct _segment {
#define LINE_EQ(p,s) ((double)(s)->delta.y*(p).x - (double)(s)->delta.x*(p).y - (s)->k)
#define LINE_EQ(p,s) ((double)(s)->delta.y*(p).x - (double)(s)->delta.x*(p).y - (s)->k)
-typedef segment_t gfxpoly_t;
+typedef edge_t gfxpoly_t;
gfxpoly_t* gfxpoly_new();
void gfxpoly_dump(gfxpoly_t*poly);
gfxpoly_t* gfxpoly_new();
void gfxpoly_dump(gfxpoly_t*poly);
+gfxpoly_t* gfxpoly_process(gfxpoly_t*poly);
typedef struct _event {
eventtype_t type;
typedef struct _event {
eventtype_t type;