7 #define POLYFILL_MODE_MASK 0x03
8 #define POLYFILL_TEX_BIT 0x04
9 #define POLYFILL_BLEND_BIT 0x08
16 POLYFILL_TEX_WIRE = 4,
20 POLYFILL_BLEND_WIRE = 8,
22 POLYFILL_BLEND_GOURAUD,
24 POLYFILL_BLEND_TEX_WIRE = 12,
25 POLYFILL_BLEND_TEX_FLAT,
26 POLYFILL_BLEND_TEX_GOURAUD
29 /* projected vertices for the rasterizer */
31 int32_t x, y; /* 24.8 fixed point */
32 int32_t u, v; /* 16.16 fixed point */
33 int32_t r, g, b, a; /* int 0-255 */
41 unsigned int xmask, ymask;
44 extern struct pimage pfill_fb;
45 extern struct pimage pfill_tex;
47 void polyfill(int mode, struct pvertex *verts, int nverts);
49 void polyfill_wire(struct pvertex *verts, int nverts);
50 void polyfill_flat(struct pvertex *verts, int nverts);
51 void polyfill_gouraud(struct pvertex *verts, int nverts);
52 void polyfill_tex_wire(struct pvertex *verts, int nverts);
53 void polyfill_tex_flat(struct pvertex *verts, int nverts);
54 void polyfill_tex_gouraud(struct pvertex *verts, int nverts);
55 void polyfill_blend_wire(struct pvertex *verts, int nverts);
56 void polyfill_blend_flat(struct pvertex *verts, int nverts);
57 void polyfill_blend_gouraud(struct pvertex *verts, int nverts);
58 void polyfill_blend_tex_wire(struct pvertex *verts, int nverts);
59 void polyfill_blend_tex_flat(struct pvertex *verts, int nverts);
60 void polyfill_blend_tex_gouraud(struct pvertex *verts, int nverts);
62 #endif /* POLYFILL_H_ */