Lines Matching refs:p1
43 if (q->n==0) {p1->n = 0; return POLY_CLIP_OUT;} \
93 * poly_clip_to_frustum: Clip the convex polygon p1 to the screen space frustum
99 * Otherwise, if the polygon is cut by the box, p1 is modified and
106 int poly_clip_to_frustum(Poly *p1)
114 for (v=p1->vert, i=p1->n; i>0; i--, v++) {
129 if (x0out==p1->n || x1out==p1->n || y0out==p1->n ||
130 y1out==p1->n || z0out==p1->n || z1out==p1->n) {
131 p1->n = 0;
137 * at each step toggling between polygons p1 and p2
139 p = p1;
148 /* if result ended up in p2 then copy it to p1 */
150 memcpy(p1, &p2, sizeof(Poly)-(POLY_NMAX-p2.n)*sizeof(Poly_vert));