7 void (*fillfunc[])(struct pvertex*, int) = {
12 void polyfill(int mode, struct pvertex *verts, int nverts)
16 fprintf(stderr, "polyfill mode %d not implemented\n", mode);
21 fillfunc[mode](verts, nverts);
24 void polyfill_wire(struct pvertex *verts, int nverts)
27 struct pvertex *v = verts;
28 unsigned short color = ((v->r << 8) & 0xf800) |
29 ((v->g << 3) & 0x7e0) | ((v->b >> 3) & 0x1f);
31 for(i=0; i<nverts; i++) {
38 clip_line(&x0, &y0, &x1, &y1, 0, 0, fb_width, fb_height);
39 draw_line(x0, y0, x1, y1, color);