Lines Matching refs:GLfloat

139 static const GLfloat Identity[16] = {
169 static void matmul4( GLfloat *product, const GLfloat *a, const GLfloat *b )
173 const GLfloat ai0=A(i,0), ai1=A(i,1), ai2=A(i,2), ai3=A(i,3);
189 static void matmul34( GLfloat *product, const GLfloat *a, const GLfloat *b )
193 const GLfloat ai0=A(i,0), ai1=A(i,1), ai2=A(i,2), ai3=A(i,3);
220 static void matrix_multf( GLmatrix *mat, const GLfloat *m, GLuint flags )
264 _math_matrix_mul_floats( GLmatrix *dest, const GLfloat *m )
288 static void print_matrix_floats( const GLfloat m[16] )
304 GLfloat prod[16];
373 const GLfloat *in = mat->m;
374 GLfloat *out = mat->inv;
375 GLfloat pos, neg, t;
376 GLfloat det;
445 const GLfloat *in = mat->m;
446 GLfloat *out = mat->inv;
453 GLfloat scale = (MAT(in,0,0) * MAT(in,0,0) +
541 const GLfloat *in = mat->m;
542 GLfloat *out = mat->inv;
574 const GLfloat *in = mat->m;
575 GLfloat *out = mat->inv;
596 const GLfloat *in = mat->m;
597 GLfloat *out = mat->inv;
686 GLfloat angle, GLfloat x, GLfloat y, GLfloat z )
688 GLfloat xx, yy, zz, xy, yz, zx, xs, ys, zs, one_c, s, c;
689 GLfloat m[16];
750 const GLfloat mag = sqrtf(x * x + y * y + z * z);
870 GLfloat left, GLfloat right,
871 GLfloat bottom, GLfloat top,
872 GLfloat nearval, GLfloat farval )
874 GLfloat x, y, a, b, c, d;
875 GLfloat m[16];
953 GLfloat left, GLfloat right,
954 GLfloat bottom, GLfloat top,
955 GLfloat nearval, GLfloat farval )
957 GLfloat m[16];
977 _math_matrix_scale( GLmatrix *mat, GLfloat x, GLfloat y, GLfloat z )
979 GLfloat *m = mat->m;
1007 _math_matrix_translate( GLmatrix *mat, GLfloat x, GLfloat y, GLfloat z )
1009 GLfloat *m = mat->m;
1119 const GLfloat *m = mat->m;
1151 GLfloat mm = DOT2(m, m);
1152 GLfloat m4m4 = DOT2(m+4,m+4);
1153 GLfloat mm4 = DOT2(m,m+4);
1184 GLfloat c1 = DOT3(m,m);
1185 GLfloat c2 = DOT3(m+4,m+4);
1186 GLfloat c3 = DOT3(m+8,m+8);
1187 GLfloat d1 = DOT3(m, m+4);
1188 GLfloat cp[3];
1232 const GLfloat *m = mat->m;
1355 memcpy(to->m, from->m, 16 * sizeof(GLfloat));
1356 memcpy(to->inv, from->inv, 16 * sizeof(GLfloat));
1391 _math_matrix_loadf( GLmatrix *mat, const GLfloat *m )
1393 memcpy( mat->m, m, 16*sizeof(GLfloat) );
1422 * Transpose a GLfloat matrix.
1428 _math_transposef( GLfloat to[16], const GLfloat from[16] )
1476 * Transpose a GLdouble matrix and convert to GLfloat.
1482 _math_transposefd( GLfloat to[16], const GLdouble from[16] )
1484 to[0] = (GLfloat) from[0];
1485 to[1] = (GLfloat) from[4];
1486 to[2] = (GLfloat) from[8];
1487 to[3] = (GLfloat) from[12];
1488 to[4] = (GLfloat) from[1];
1489 to[5] = (GLfloat) from[5];
1490 to[6] = (GLfloat) from[9];
1491 to[7] = (GLfloat) from[13];
1492 to[8] = (GLfloat) from[2];
1493 to[9] = (GLfloat) from[6];
1494 to[10] = (GLfloat) from[10];
1495 to[11] = (GLfloat) from[14];
1496 to[12] = (GLfloat) from[3];
1497 to[13] = (GLfloat) from[7];
1498 to[14] = (GLfloat) from[11];
1499 to[15] = (GLfloat) from[15];
1515 _mesa_transform_vector( GLfloat u[4], const GLfloat v[4], const GLfloat m[16] )
1517 const GLfloat v0 = v[0], v1 = v[1], v2 = v[2], v3 = v[3];