Lines Matching refs:clip
42 * \param v vertex vector describing the point to clip.
62 * \param v vertex vector describing the point to clip.
82 * \param v vertex vector describing the point to clip.
362 * XXX some of this code (such as viewport xform, clip testing and setting
377 GLfloat eye[4], clip[4], ndc[3], d;
383 /* apply projection matrix: clip = Proj * eye */
384 TRANSFORM_POINT( clip, ctx->ProjectionMatrixStack.Top->m, eye );
386 /* clip to view volume. */
388 if (viewclip_point_z(clip) == 0) {
394 if (viewclip_point_xy(clip) == 0) {
400 /* clip to user clipping planes */
401 if (ctx->Transform.ClipPlanesEnabled && !userclip_point(ctx, clip)) {
406 /* ndc = clip / W */
407 d = (clip[3] == 0.0F) ? 1.0F : 1.0F / clip[3];
408 ndc[0] = clip[0] * d;
409 ndc[1] = clip[1] * d;
410 ndc[2] = clip[2] * d;
419 ctx->Current.RasterPos[3] = clip[3];