Lines Matching defs:from
364 * \author Adapted from graphics gems II.
677 * Generate a 4x4 transformation matrix from glRotate parameters, and
769 * from the arbitrary axis to the X-axis then back. They are
778 * Rz' and Ry' are considered inverses, since the data from the
780 * to get away from it, and an inverse must be applied.
1111 * Determine type and flags from scratch.
1348 * \param from source matrix.
1353 _math_matrix_copy( GLmatrix *to, const GLmatrix *from )
1355 memcpy(to->m, from->m, 16 * sizeof(GLfloat));
1356 memcpy(to->inv, from->inv, 16 * sizeof(GLfloat));
1357 to->flags = from->flags;
1358 to->type = from->type;
1369 * would make it different from the pushed one and so glPopMatrix wouldn't be
1373 _math_matrix_push_copy(GLmatrix *to, GLmatrix *from)
1375 if (from->flags & MAT_DIRTY)
1376 _math_matrix_analyse(from);
1378 _math_matrix_copy(to, from);
1425 * \param from source array.
1428 _math_transposef( GLfloat to[16], const GLfloat from[16] )
1430 to[0] = from[0];
1431 to[1] = from[4];
1432 to[2] = from[8];
1433 to[3] = from[12];
1434 to[4] = from[1];
1435 to[5] = from[5];
1436 to[6] = from[9];
1437 to[7] = from[13];
1438 to[8] = from[2];
1439 to[9] = from[6];
1440 to[10] = from[10];
1441 to[11] = from[14];
1442 to[12] = from[3];
1443 to[13] = from[7];
1444 to[14] = from[11];
1445 to[15] = from[15];
1452 * \param from source array.
1455 _math_transposed( GLdouble to[16], const GLdouble from[16] )
1457 to[0] = from[0];
1458 to[1] = from[4];
1459 to[2] = from[8];
1460 to[3] = from[12];
1461 to[4] = from[1];
1462 to[5] = from[5];
1463 to[6] = from[9];
1464 to[7] = from[13];
1465 to[8] = from[2];
1466 to[9] = from[6];
1467 to[10] = from[10];
1468 to[11] = from[14];
1469 to[12] = from[3];
1470 to[13] = from[7];
1471 to[14] = from[11];
1472 to[15] = from[15];
1479 * \param from source array.
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];