Exemple #1
0
void makeviewO(void)
{
  view->C = m4_ident();
  view->C.r1.x = 1 / view->s.u;
  view->C.r2.y = 1 / view->s.v;
  view->C.r3.z = 1 / (view->back - view->front);
  view->C.r1.w = - view->c.u / view->s.u;
  view->C.r2.w = - view->c.v / view->s.v;
  view->C.r3.w = - view->front / (view->back - view->front);
  view->P = m4_ident();
  makeviewOi();
}
Exemple #2
0
Fichier : set.c Projet : cheque/s3d
void makeviewO(void)
{
  view->C = m4_ident();
  view->C.r1.x = 2. / (view->right - view->left);
  view->C.r2.y = 2. / (view->top - view->bottom);;
  view->C.r3.z = -2. / (view->back - view->front);
  view->C.r1.w = (view->right + view->left) /  (view->right - view->left);;
  view->C.r2.w = (view->top + view->bottom) / (view->top - view->bottom);
  view->C.r3.w = (view->back + view->front) / (view->back - view->front);
  view->P = m4_ident();
  makeviewOi();
}