X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=blobdiff_plain;f=src%2Fpolyfill.h;h=a01130cbc5f9c2faf76a1ce37855a7b26837be32;hb=6218ea71a2a175dca5bf88ca7922e97f42f85e69;hp=57f0dc46624887634a83baa714b7994fb118e596;hpb=921c229affb2b1da97d7be21d5c86ad045a6fcc3;p=dosdemo diff --git a/src/polyfill.h b/src/polyfill.h index 57f0dc4..a01130c 100644 --- a/src/polyfill.h +++ b/src/polyfill.h @@ -15,10 +15,22 @@ enum { struct pvertex { int32_t x, y; /* 24.8 fixed point */ int32_t u, v; /* 16.16 fixed point */ - unsigned char r, g, b; + int32_t r, g, b; /* int 0-255 */ }; +struct pimage { + uint16_t *pixels; + int width, height; +}; + +extern struct pimage pimg_fb; +extern struct pimage pimg_texture; + void polyfill(int mode, struct pvertex *verts, int nverts); void polyfill_wire(struct pvertex *verts, int nverts); +void polyfill_flat(struct pvertex *verts, int nverts); +void polyfill_gouraud(struct pvertex *verts, int nverts); +void polyfill_tex(struct pvertex *verts, int nverts); +void polyfill_tex_gouraud(struct pvertex *verts, int nverts); #endif /* POLYFILL_H_ */