Code/main.cpp
//Reshape callback: Allows the window to be resized, but maze
//will still work only on original size
Reshape callback: Allows the window to be resized, but maze
will still work only on original size
Reshape callback : Allows the window to be resized but maze will still work only on original size
void reshape(int w, int h) {
    glViewport(0, 0, maze->W_WIDTH, maze->W_HEIGHT);
    glMatrixMode(GL_PROJECTION);
    glLoadIdentity();
    gluOrtho2D(0.0, maze->W_WIDTH,0.0, maze->W_HEIGHT);
    glMatrixMode(GL_MODELVIEW);
    glLoadIdentity();
    glutPostRedisplay();
}
void reshape ( int w , int h ) { glViewport ( 0 , 0 , maze -> W_WIDTH , maze -> W_HEIGHT ) ; glMatrixMode ( GL_PROJECTION ) ; glLoadIdentity ( ) ; gluOrtho2D ( 0.0 , maze -> W_WIDTH , 0.0 , maze -> W_HEIGHT ) ; glMatrixMode ( GL_MODELVIEW ) ; glLoadIdentity ( ) ; glutPostRedisplay ( ) ; }
Reshape callback: Allows the window to be resized, but maze
will still work only on original size
Reshape callback : Allows the window to be resized but maze will still work only on original size