Lines Matching refs:clipPos
84 vOut->clipPos.x = INTERPOLATE(t, v0->clipPos.x, v1->clipPos.x);
85 vOut->clipPos.y = INTERPOLATE(t, v0->clipPos.y, v1->clipPos.y);
86 vOut->clipPos.z = INTERPOLATE(t, v0->clipPos.z, v1->clipPos.z);
87 vOut->clipPos.w = INTERPOLATE(t, v0->clipPos.w, v1->clipPos.w);
143 if (v->clipPos.x > v->clipPos.w)
145 if (v->clipPos.x < -v->clipPos.w)
147 if (v->clipPos.y > v->clipPos.w)
149 if (v->clipPos.y < -v->clipPos.w)
151 if (v->clipPos.z > v->clipPos.w)
153 if (v->clipPos.z < -v->clipPos.w)
219 #define OUTSIDE(V) (V.clipPos.x > V.clipPos.w)
221 dx = OUT.clipPos.x - IN.clipPos.x; \
222 dw = OUT.clipPos.w - IN.clipPos.w; \
223 t = (IN.clipPos.x - IN.clipPos.w) / (dw-dx);
229 #define OUTSIDE(V) (V.clipPos.x < -(V.clipPos.w))
231 dx = OUT.clipPos.x - IN.clipPos.x; \
232 dw = OUT.clipPos.w - IN.clipPos.w; \
233 t = -(IN.clipPos.x + IN.clipPos.w) / (dw+dx);
239 #define OUTSIDE(V) (V.clipPos.y > V.clipPos.w)
241 dy = OUT.clipPos.y - IN.clipPos.y; \
242 dw = OUT.clipPos.w - IN.clipPos.w; \
243 t = (IN.clipPos.y - IN.clipPos.w) / (dw-dy);
249 #define OUTSIDE(V) (V.clipPos.y < -(V.clipPos.w))
251 dy = OUT.clipPos.y - IN.clipPos.y; \
252 dw = OUT.clipPos.w - IN.clipPos.w; \
253 t = -(IN.clipPos.y + IN.clipPos.w) / (dw+dy);
259 #define OUTSIDE(V) (V.clipPos.z > V.clipPos.w)
261 dz = OUT.clipPos.z - IN.clipPos.z; \
262 dw = OUT.clipPos.w - IN.clipPos.w; \
263 t = (IN.clipPos.z - IN.clipPos.w) / (dw-dz);
269 #define OUTSIDE(V) (V.clipPos.z < -(V.clipPos.w))
271 dz = OUT.clipPos.z - IN.clipPos.z; \
272 dw = OUT.clipPos.w - IN.clipPos.w; \
273 t = -(IN.clipPos.z + IN.clipPos.w) / (dw+dz);
348 #define INSIDE(V) (V->clipPos.x <= V->clipPos.w)
350 dx = OUT->clipPos.x - IN->clipPos.x; \
351 dw = OUT->clipPos.w - IN->clipPos.w; \
352 t = (IN->clipPos.x - IN->clipPos.w) / (dw - dx); \
363 #define INSIDE(V) (V->clipPos.x >= -V->clipPos.w)
365 dx = OUT->clipPos.x - IN->clipPos.x; \
366 dw = OUT->clipPos.w - IN->clipPos.w; \
367 t = -(IN->clipPos.x + IN->clipPos.w) / (dw + dx); \
378 #define INSIDE(V) (V->clipPos.y <= V->clipPos.w)
380 dy = OUT->clipPos.y - IN->clipPos.y; \
381 dw = OUT->clipPos.w - IN->clipPos.w; \
382 t = (IN->clipPos.y - IN->clipPos.w) / (dw - dy); \
393 #define INSIDE(V) (V->clipPos.y >= -V->clipPos.w)
395 dy = OUT->clipPos.y - IN->clipPos.y; \
396 dw = OUT->clipPos.w - IN->clipPos.w; \
397 t = -(IN->clipPos.y + IN->clipPos.w) / (dw + dy); \
408 #define INSIDE(V) (V->clipPos.z <= V->clipPos.w)
410 dz = OUT->clipPos.z - IN->clipPos.z; \
411 dw = OUT->clipPos.w - IN->clipPos.w; \
412 t = (IN->clipPos.z - IN->clipPos.w) / (dw - dz); \
423 #define INSIDE(V) (V->clipPos.z >= -V->clipPos.w)
425 dz = OUT->clipPos.z - IN->clipPos.z; \
426 dw = OUT->clipPos.w - IN->clipPos.w; \
427 t = -(IN->clipPos.z + IN->clipPos.w) / (dw + dz); \
549 MAP_POINT(c.winPos, c.clipPos, g->viewport);
564 MAP_POINT(c0.winPos, c0.clipPos, g->viewport);
565 MAP_POINT(c1.winPos, c1.clipPos, g->viewport);
591 MAP_POINT(vclipped[i].winPos, vclipped[i].clipPos, g->viewport);
618 TRANSFORM_POINT(v->clipPos, *(t->projectionStack.top), v->eyePos);
1721 MAP_POINT(c.winPos, c.clipPos, g->viewport);
1734 MAP_POINT(c0.winPos, c0.clipPos, g->viewport);
1735 MAP_POINT(c1.winPos, c1.clipPos, g->viewport);
1756 MAP_POINT(vclipped[i].winPos, vclipped[i].clipPos, g->viewport);
1782 TRANSFORM_POINT(v->clipPos, *(t->projectionStack.top), v->eyePos);