Lines Matching defs:clip
49 * \param v vertex vector describing the point to clip.
69 * \param v vertex vector describing the point to clip.
88 * \param v vertex vector describing the point to clip.
108 * \param v vertex vector describing the point to clip.
408 GLfloat eye[4], clip[4], ndc[3], d;
415 /* apply projection matrix: clip = Proj * eye */
416 TRANSFORM_POINT( clip, ctx->ProjectionMatrixStack.Top->m, eye );
418 /* clip to view volume. */
420 if (viewclip_point_near_z(clip) == 0) {
426 if (viewclip_point_far_z(clip) == 0) {
432 if (viewclip_point_xy(clip) == 0) {
438 /* clip to user clipping planes */
439 if (ctx->Transform.ClipPlanesEnabled && !userclip_point(ctx, clip)) {
444 /* ndc = clip / W */
445 d = (clip[3] == 0.0F) ? 1.0F : 1.0F / clip[3];
446 ndc[0] = clip[0] * d;
447 ndc[1] = clip[1] * d;
448 ndc[2] = clip[2] * d;
454 ctx->Current.RasterPos[3] = clip[3];