Lines Matching refs:GLfloat

48 compute_plane(const GLfloat v0[], const GLfloat v1[], const GLfloat v2[],  in compute_plane()
49 GLfloat z0, GLfloat z1, GLfloat z2, GLfloat plane[4]) in compute_plane()
51 const GLfloat px = v1[0] - v0[0]; in compute_plane()
52 const GLfloat py = v1[1] - v0[1]; in compute_plane()
53 const GLfloat pz = z1 - z0; in compute_plane()
55 const GLfloat qx = v2[0] - v0[0]; in compute_plane()
56 const GLfloat qy = v2[1] - v0[1]; in compute_plane()
57 const GLfloat qz = z2 - z0; in compute_plane()
60 const GLfloat a = py * qz - pz * qy; in compute_plane()
61 const GLfloat b = pz * qx - px * qz; in compute_plane()
62 const GLfloat c = px * qy - py * qx; in compute_plane()
68 const GLfloat d = -(a * v0[0] + b * v0[1] + c * z0); in compute_plane()
81 constant_plane(GLfloat value, GLfloat plane[4]) in constant_plane()
102 static inline GLfloat
103 solve_plane(GLfloat x, GLfloat y, const GLfloat plane[4]) in solve_plane()
117 static inline GLfloat
118 solve_plane_recip(GLfloat x, GLfloat y, const GLfloat plane[4]) in solve_plane_recip()
120 const GLfloat denom = plane[3] + plane[0] * x + plane[1] * y; in solve_plane_recip()
132 solve_plane_chan(GLfloat x, GLfloat y, const GLfloat plane[4]) in solve_plane_chan()
134 const GLfloat z = (plane[3] + plane[0] * x + plane[1] * y) / -plane[2]; in solve_plane_chan()
147 static inline GLfloat
148 plane_dx(const GLfloat plane[4]) in plane_dx()
153 static inline GLfloat
154 plane_dy(const GLfloat plane[4]) in plane_dy()
166 static GLfloat
167 compute_coveragef(const GLfloat v0[3], const GLfloat v1[3], in compute_coveragef()
168 const GLfloat v2[3], GLint winx, GLint winy) in compute_coveragef()
186 static const GLfloat samples[16][2] = { in compute_coveragef()
207 const GLfloat x = (GLfloat) winx; in compute_coveragef()
208 const GLfloat y = (GLfloat) winy; in compute_coveragef()
209 const GLfloat dx0 = v1[0] - v0[0]; in compute_coveragef()
210 const GLfloat dy0 = v1[1] - v0[1]; in compute_coveragef()
211 const GLfloat dx1 = v2[0] - v1[0]; in compute_coveragef()
212 const GLfloat dy1 = v2[1] - v1[1]; in compute_coveragef()
213 const GLfloat dx2 = v0[0] - v2[0]; in compute_coveragef()
214 const GLfloat dy2 = v0[1] - v2[1]; in compute_coveragef()
216 GLfloat insideCount = 16.0F; in compute_coveragef()
221 const GLfloat sx = x + samples[i][0]; in compute_coveragef()
222 const GLfloat sy = y + samples[i][1]; in compute_coveragef()
224 GLfloat cross = (dx0 * (sy - v0[1]) - dy0 * (sx - v0[0])); in compute_coveragef()