X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=blobdiff_plain;f=src%2Fpolyclip.h;h=adee29ddb74e2cd145a24b59fc9b1c9d0778ca31;hb=HEAD;hp=0b460cfeaceb5ce090a93ee0d5ae34fd157c5edb;hpb=1bd8af3c3c9ec41903590d6ad24ff6313a5cc19b;p=dosdemo diff --git a/src/polyclip.h b/src/polyclip.h deleted file mode 100644 index 0b460cf..0000000 --- a/src/polyclip.h +++ /dev/null @@ -1,32 +0,0 @@ -#ifndef POLYCLIP_H_ -#define POLYCLIP_H_ - -#include "3dgfx.h" - -struct cplane { - float x, y, z; - float nx, ny, nz; -}; - -enum { - CLIP_LEFT, CLIP_RIGHT, - CLIP_BOTTOM, CLIP_TOP, - CLIP_NEAR, CLIP_FAR -}; - -/* Generic polygon clipper - * returns: - * 1 -> fully inside, not clipped - * 0 -> straddling the plane and clipped - * -1 -> fully outside, not clipped - * in all cases, vertices are copied to vout, and the vertex count is written - * to wherever voutnum is pointing - */ -int clip_poly(struct g3d_vertex *vout, int *voutnum, - const struct g3d_vertex *vin, int vnum, struct cplane *plane); - -/* Special-case frustum clipper (might be slightly faster) */ -int clip_frustum(struct g3d_vertex *vout, int *voutnum, - const struct g3d_vertex *vin, int vnum, int fplane); - -#endif /* POLYCLIP_H_ */