shithub: purgatorio

ref: f8935b5778397074d41a48205e5c7f87d7b531fe
dir: purgatorio/module/math/polyfill.m

View raw version
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);
};