Lines Matching refs:plane
838 GLfixed frustumPlaneDist(int plane, const vec4_t& s)
840 const GLfixed d = s.v[ plane >> 1 ];
841 return ((plane & 1) ? (s.w - d) : (s.w + d));
859 // Temporary buffer to hold the new vertices. Each plane can add up to
879 // 3 input vertices, 0 in the output list, first plane
884 // clipping, except for the computation of the distance (vertex, plane)
890 unsigned int plane = 0;
899 // previous vertex, compute distance to the plane
901 const vec4_t& equation = c->clipPlanes.plane[plane].equation;
903 // clip each vertex against this plane...
949 plane++;
956 unsigned int plane = 0;
965 // previous vertex, compute distance to the plane
967 GLfixed sd = frustumPlaneDist(plane, s->clip);
968 // clip each vertex against this plane...
971 const GLfixed pd = frustumPlaneDist(plane, p->clip);
1014 plane++;
1039 unsigned int plane = 0;
1043 const vec4_t& equation = c->clipPlanes.plane[plane].equation;
1068 plane++;
1075 unsigned int plane = 0;
1079 const GLfixed sd = frustumPlaneDist(plane, s->clip);
1080 const GLfixed pd = frustumPlaneDist(plane, p->clip);
1103 plane++;