Home | History | Annotate | Download | only in swrast

Lines Matching refs:PLANE

79  * Compute the equation of a plane used to interpolate line fragment data
83 * Output: plane - the plane equation.
85 * Note: we don't really have enough parameters to specify a plane.
86 * We take the endpoints of the line and compute a plane such that
87 * the cross product of the line vector and the plane normal is
88 * parallel to the projection plane.
92 GLfloat z0, GLfloat z1, GLfloat plane[4])
106 plane[0] = a;
107 plane[1] = b;
108 plane[2] = c;
109 plane[3] = d;
120 plane[0] = 0.0F;
121 plane[1] = 0.0F;
122 plane[2] = 1.0F;
123 plane[3] = 0.0F;
126 plane[0] = a;
127 plane[1] = b;
128 plane[2] = c;
129 plane[3] = d;
136 constant_plane(GLfloat value, GLfloat plane[4])
138 plane[0] = 0.0F;
139 plane[1] = 0.0F;
140 plane[2] = -1.0F;
141 plane[3] = value;
146 solve_plane(GLfloat x, GLfloat y, const GLfloat plane[4])
148 const GLfloat z = (plane[3] + plane[0] * x + plane[1] * y) / -plane[2];
152 #define SOLVE_PLANE(X, Y, PLANE) \
153 ((PLANE[3] + PLANE[0] * (X) + PLANE[1] * (Y)) / -PLANE[2])
160 solve_plane_recip(GLfloat x, GLfloat y, const GLfloat plane[4])
162 const GLfloat denom = plane[3] + plane[0] * x + plane[1] * y;
166 return -plane[2] / denom;
171 * Solve plane and return clamped GLchan value.
174 solve_plane_chan(GLfloat x, GLfloat y, const GLfloat plane[4])
176 const GLfloat z = (plane[3] + plane[0] * x + plane[1] * y) / -plane[2];