
Fichier source : ParametragesGLUt4.cpp
    Modules utilitaires
/* Fonction executee lors d'un changement       */
    /* de la taille de la fenetre OpenGL            */
    
    static void reshape(int x,int y) {
      glViewport(0,0,x,y); 
      glMatrixMode(GL_PROJECTION);
      glLoadIdentity();
      glOrtho(-4.5F*(float) x/y,4.5F*(float) x/y,-4.5,4.5,-4.5,4.5);
      glMatrixMode(GL_MODELVIEW);
      glLoadIdentity();
    }