Exemple #1
0
void bot_gl_multTrans(BotTrans * trans){
  double trans_m[16];
  bot_trans_get_mat_4x4(trans, trans_m);
  // opengl expects column-major matrices
  double trans_m_opengl[16];
  bot_matrix_transpose_4x4d(trans_m, trans_m_opengl);
  glMultMatrixd(trans_m_opengl);
}
Exemple #2
0
int
atrans_get_trans_mat_4x4(ATrans *atrans, const char *from_frame,
        const char *to_frame, double mat[16])
{
    BotTrans bt;
    if(!atrans_get_trans(atrans, from_frame, to_frame, &bt))
        return 0;
    bot_trans_get_mat_4x4(&bt, mat);
    return 1;
}