X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=blobdiff_plain;ds=sidebyside;f=src%2Fpolyfill.h;h=86c794739e8649d9f7a119d2efc1227eb94c4cfe;hb=HEAD;hp=b52b5de1f5af8eea2ddb14dd25a3dbafdc3b5d7b;hpb=9b942b99fe10222bee50c47bfc809de268d331ec;p=dosdemo diff --git a/src/polyfill.h b/src/polyfill.h deleted file mode 100644 index b52b5de..0000000 --- a/src/polyfill.h +++ /dev/null @@ -1,39 +0,0 @@ -#ifndef POLYFILL_H_ -#define POLYFILL_H_ - -#include "inttypes.h" - -enum { - POLYFILL_WIRE, - POLYFILL_FLAT, - POLYFILL_GOURAUD, - POLYFILL_TEX, - POLYFILL_TEX_GOURAUD -}; - -/* projected vertices for the rasterizer */ -struct pvertex { - int32_t x, y; /* 24.8 fixed point */ - int32_t u, v; /* 16.16 fixed point */ - int32_t r, g, b, a; /* int 0-255 */ -}; - -struct pimage { - uint16_t *pixels; - int width, height; - - int xshift, yshift; - unsigned int xmask, ymask; -}; - -extern struct pimage pfill_fb; -extern struct pimage pfill_tex; - -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_ */