12 CLIP_LEFT, CLIP_RIGHT,
13 CLIP_BOTTOM, CLIP_TOP,
17 /* Generic polygon clipper
19 * 1 -> fully inside, not clipped
20 * 0 -> straddling the plane and clipped
21 * -1 -> fully outside, not clipped
22 * in all cases, vertices are copied to vout, and the vertex count is written
23 * to wherever voutnum is pointing
25 int clip_poly(struct g3d_vertex *vout, int *voutnum,
26 const struct g3d_vertex *vin, int vnum, struct cplane *plane);
28 /* Special-case frustum clipper (might be slightly faster) */
29 int clip_frustum(struct g3d_vertex *vout, int *voutnum,
30 const struct g3d_vertex *vin, int vnum, int fplane);
32 #endif /* POLYCLIP_H_ */