diff options
| author | bhgv <bhgv.empire@gmail.com> | 2018-03-01 16:54:45 +0200 |
|---|---|---|
| committer | bhgv <bhgv.empire@gmail.com> | 2018-03-01 16:54:45 +0200 |
| commit | b786f20bbab5a59046aa78a2c6c2a11536497202 (patch) | |
| tree | 0851ecdec889eb9b7ba3751cc04d4f0b474e4a9e /module/math/polyfill.m | |
inferno-os tree was separated from the inferno-os-android (separated from the Android driver)
Diffstat (limited to 'module/math/polyfill.m')
| -rw-r--r-- | module/math/polyfill.m | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/module/math/polyfill.m b/module/math/polyfill.m new file mode 100644 index 0000000..be9af8d --- /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 |
