Lines Matching refs:GLfloat

44    GLfloat x0, y0;        /* start */
45 GLfloat x1, y1; /* end */
46 GLfloat dx, dy; /* direction vector */
47 GLfloat len; /* length */
48 GLfloat halfWidth; /* half of line width */
49 GLfloat xAdj, yAdj; /* X and Y adjustment for quad corners around line */
51 GLfloat qx0, qy0; /* quad vertices */
52 GLfloat qx1, qy1;
53 GLfloat qx2, qy2;
54 GLfloat qx3, qy3;
55 GLfloat ex0, ey0; /* quad edge vectors */
56 GLfloat ex1, ey1;
57 GLfloat ex2, ey2;
58 GLfloat ex3, ey3;
61 GLfloat zPlane[4];
63 GLfloat rPlane[4], gPlane[4], bPlane[4], aPlane[4];
65 GLfloat wPlane[4];
66 GLfloat attrPlane[FRAG_ATTRIB_MAX][4][4];
67 GLfloat lambda[FRAG_ATTRIB_MAX];
68 GLfloat texWidth[FRAG_ATTRIB_MAX];
69 GLfloat texHeight[FRAG_ATTRIB_MAX];
89 compute_plane(GLfloat x0, GLfloat y0, GLfloat x1, GLfloat y1, in compute_plane()
90 GLfloat z0, GLfloat z1, GLfloat plane[4]) in compute_plane()
94 const GLfloat px = x1 - x0; in compute_plane()
95 const GLfloat py = y1 - y0; in compute_plane()
96 const GLfloat pz = z1 - z0; in compute_plane()
97 const GLfloat qx = -py; in compute_plane()
98 const GLfloat qy = px; in compute_plane()
99 const GLfloat qz = 0; in compute_plane()
100 const GLfloat a = py * qz - pz * qy; in compute_plane()
101 const GLfloat b = pz * qx - px * qz; in compute_plane()
102 const GLfloat c = px * qy - py * qx; in compute_plane()
103 const GLfloat d = -(a * x0 + b * y0 + c * z0); in compute_plane()
110 const GLfloat px = x1 - x0; in compute_plane()
111 const GLfloat py = y1 - y0; in compute_plane()
112 const GLfloat pz = z0 - z1; in compute_plane()
113 const GLfloat a = pz * px; in compute_plane()
114 const GLfloat b = pz * py; in compute_plane()
115 const GLfloat c = px * px + py * py; in compute_plane()
116 const GLfloat d = -(a * x0 + b * y0 + c * z0); in compute_plane()
134 constant_plane(GLfloat value, GLfloat plane[4]) in constant_plane()
143 static inline GLfloat
144 solve_plane(GLfloat x, GLfloat y, const GLfloat plane[4]) in solve_plane()
146 const GLfloat z = (plane[3] + plane[0] * x + plane[1] * y) / -plane[2]; in solve_plane()
157 static inline GLfloat
158 solve_plane_recip(GLfloat x, GLfloat y, const GLfloat plane[4]) in solve_plane_recip()
160 const GLfloat denom = plane[3] + plane[0] * x + plane[1] * y; in solve_plane_recip()
172 solve_plane_chan(GLfloat x, GLfloat y, const GLfloat plane[4]) in solve_plane_chan()
174 const GLfloat z = (plane[3] + plane[0] * x + plane[1] * y) / -plane[2]; in solve_plane_chan()
190 static inline GLfloat
191 compute_lambda(const GLfloat sPlane[4], const GLfloat tPlane[4], in compute_lambda()
192 GLfloat invQ, GLfloat width, GLfloat height) in compute_lambda()
194 GLfloat dudx = sPlane[0] / sPlane[2] * invQ * width; in compute_lambda()
195 GLfloat dudy = sPlane[1] / sPlane[2] * invQ * width; in compute_lambda()
196 GLfloat dvdx = tPlane[0] / tPlane[2] * invQ * height; in compute_lambda()
197 GLfloat dvdy = tPlane[1] / tPlane[2] * invQ * height; in compute_lambda()
198 GLfloat r1 = dudx * dudx + dudy * dudy; in compute_lambda()
199 GLfloat r2 = dvdx * dvdx + dvdy * dvdy; in compute_lambda()
200 GLfloat rho2 = r1 + r2; in compute_lambda()
205 return (GLfloat) (LOGF(rho2) * 1.442695 * 0.5);/* 1.442695 = 1/log(2) */ in compute_lambda()
219 make_sample_table(GLint xSamples, GLint ySamples, GLfloat samples[][2]) in make_sample_table()
221 const GLfloat dx = 1.0F / (GLfloat) xSamples; in make_sample_table()
222 const GLfloat dy = 1.0F / (GLfloat) ySamples; in make_sample_table()
263 static GLfloat
267 static GLfloat samples[SUB_PIXEL * SUB_PIXEL][2]; in compute_coveragef()
269 const GLfloat x = (GLfloat) winx; in compute_coveragef()
270 const GLfloat y = (GLfloat) winy; in compute_coveragef()
272 GLfloat insideCount = SUB_PIXEL * SUB_PIXEL; in compute_coveragef()
281 const GLfloat area = dx0 * dy1 - dx1 * dy0; in compute_coveragef()
287 const GLfloat sx = x + samples[i][0]; in compute_coveragef()
288 const GLfloat sy = y + samples[i][1]; in compute_coveragef()
289 const GLfloat fx0 = sx - info->qx0; in compute_coveragef()
290 const GLfloat fy0 = sy - info->qy0; in compute_coveragef()
291 const GLfloat fx1 = sx - info->qx1; in compute_coveragef()
292 const GLfloat fy1 = sy - info->qy1; in compute_coveragef()
293 const GLfloat fx2 = sx - info->qx2; in compute_coveragef()
294 const GLfloat fy2 = sy - info->qy2; in compute_coveragef()
295 const GLfloat fx3 = sx - info->qx3; in compute_coveragef()
296 const GLfloat fy3 = sy - info->qy3; in compute_coveragef()
298 GLfloat cross0 = (info->ex0 * fy0 - info->ey0 * fx0); in compute_coveragef()
299 GLfloat cross1 = (info->ex1 * fy1 - info->ey1 * fx1); in compute_coveragef()
300 GLfloat cross2 = (info->ex2 * fy2 - info->ey2 * fx2); in compute_coveragef()
301 GLfloat cross3 = (info->ex3 * fy3 - info->ey3 * fx3); in compute_coveragef()
338 GLfloat t0, GLfloat t1) in segment()
340 const GLfloat absDx = (line->dx < 0.0F) ? -line->dx : line->dx; in segment()
341 const GLfloat absDy = (line->dy < 0.0F) ? -line->dy : line->dy; in segment()
343 const GLfloat x0 = line->x0 + t0 * line->dx; in segment()
344 const GLfloat y0 = line->y0 + t0 * line->dy; in segment()
345 const GLfloat x1 = line->x0 + t1 * line->dx; in segment()
346 const GLfloat y1 = line->y0 + t1 * line->dy; in segment()
369 GLfloat dydx = line->dy / line->dx; in segment()
370 GLfloat xLeft, xRight, yBot, yTop; in segment()
415 GLfloat dxdy = line->dx / line->dy; in segment()
416 GLfloat yBot, yTop, xLeft, xRight; in segment()