Fichier source : ParametrageCamera5.cpp
Fichier source : ParametrageCameraScene.h
Fichier source : parametrageCameraScene.cpp
Modules utilitaires
/* Fonction executee lors d'un changement */
/* de la taille de la fenetre OpenGL */
/* -> Ajustement de la camera de visualisation */
#ifndef M_PI
#define M_PI 3.14159
#endif
static void reshape(int x,int y) {
double angle = asin(10.0/100.0)*2*180.0/M_PI;
glViewport(0,0,x,y);
glMatrixMode(GL_PROJECTION);
glLoadIdentity();
gluPerspective(angle,1.0,89.0,111.0);
glMatrixMode(GL_MODELVIEW);
glLoadIdentity();
glTranslatef(0.0,0.0,-100.0F);
/* glRotatef(54.7347F,1.0F,-1.0F,0.0F); */
glRotatef(35.26439F,1.0F,0.0F,0.0F);
glRotatef(-45.0F,0.0F,1.0F,0.0F);
}