summaryrefslogtreecommitdiff
path: root/module/math/polyfill.m
diff options
context:
space:
mode:
authorCharles.Forsyth <devnull@localhost>2006-12-22 20:52:35 +0000
committerCharles.Forsyth <devnull@localhost>2006-12-22 20:52:35 +0000
commit46439007cf417cbd9ac8049bb4122c890097a0fa (patch)
tree6fdb25e5f3a2b6d5657eb23b35774b631d4d97e4 /module/math/polyfill.m
parent37da2899f40661e3e9631e497da8dc59b971cbd0 (diff)
20060303-partial
Diffstat (limited to 'module/math/polyfill.m')
-rw-r--r--module/math/polyfill.m18
1 files changed, 18 insertions, 0 deletions
diff --git a/module/math/polyfill.m b/module/math/polyfill.m
new file mode 100644
index 00000000..be9af8db
--- /dev/null
+++ b/module/math/polyfill.m
@@ -0,0 +1,18 @@
+Polyfill: module
+{
+ PATH: con "/dis/math/polyfill.dis";
+
+ Zstate: adt{
+ r: Draw->Rect;
+ zbuf0, zbuf1: array of int;
+ xlen: int;
+ ylen: int;
+ xylen: int;
+ };
+
+ init: fn();
+ initzbuf: fn(r: Draw->Rect): ref Zstate;
+ clearzbuf: fn(s: ref Zstate);
+ setzbuf: fn(s: ref Zstate, zd: int);
+ fillpoly: fn(d: ref Image, v: array of Point, w: int, s: ref Image, p: Point, zstate: ref Zstate, dc, dx, dy: int);
+}; \ No newline at end of file