コード例 #1
0
ファイル: m_matrix.c プロジェクト: xSIMx/Mesa-3D
/**
 * Dumps the contents of a GLmatrix structure.
 * 
 * \param m pointer to the GLmatrix structure.
 */
void
_math_matrix_print( const GLmatrix *m )
{
   GLfloat prod[16];

   _mesa_debug(NULL, "Matrix type: %s, flags: %x\n", types[m->type], m->flags);
   print_matrix_floats(m->m);
   _mesa_debug(NULL, "Inverse: \n");
   print_matrix_floats(m->inv);
   matmul4(prod, m->m, m->inv);
   _mesa_debug(NULL, "Mat * Inverse:\n");
   print_matrix_floats(prod);
}
コード例 #2
0
ファイル: es-util.c プロジェクト: dlespiau/cogl-wonderbar
void
es_print_matrix (const char *prefix,
                 CoglMatrix *matrix)
{
  print_matrix_floats (prefix, (float *)matrix);
}